func testTables() *schema.Table { t := new(schema.Table) t.Name = "user" t.AddColumn("id", "int", sqltypes.NULL, "", true) t.AddColumn("name", "string", sqltypes.NULL, "", false) index := t.AddIndex("PRIMARY") index.AddColumn("id", 0) t.PKColumns = []int{0} return t }