vitess.io/vitess@v0.16.2/go/test/endtoend/vtgate/vschema.json (about) 1 2 { 3 "sharded": true, 4 "vindexes": { 5 "unicode_loose_xxhash" : { 6 "type": "unicode_loose_xxhash" 7 }, 8 "unicode_loose_md5" : { 9 "type": "unicode_loose_md5" 10 }, 11 "hash": { 12 "type": "hash" 13 }, 14 "xxhash": { 15 "type": "xxhash" 16 }, 17 "t1_id2_vdx": { 18 "type": "consistent_lookup_unique", 19 "params": { 20 "table": "t1_id2_idx", 21 "from": "id2", 22 "to": "keyspace_id" 23 }, 24 "owner": "t1" 25 }, 26 "t2_id4_idx": { 27 "type": "lookup_hash", 28 "params": { 29 "table": "t2_id4_idx", 30 "from": "id4", 31 "to": "id3", 32 "autocommit": "true" 33 }, 34 "owner": "t2" 35 }, 36 "t3_id7_vdx": { 37 "type": "lookup_hash", 38 "params": { 39 "table": "t3_id7_idx", 40 "from": "id7", 41 "to": "id6" 42 }, 43 "owner": "t3" 44 }, 45 "t4_id2_vdx": { 46 "type": "consistent_lookup", 47 "params": { 48 "table": "t4_id2_idx", 49 "from": "id2,id1", 50 "to": "keyspace_id" 51 }, 52 "owner": "t4" 53 }, 54 "t6_id2_vdx": { 55 "type": "consistent_lookup", 56 "params": { 57 "table": "t6_id2_idx", 58 "from": "id2,id1", 59 "to": "keyspace_id", 60 "ignore_nulls": "true" 61 }, 62 "owner": "t6" 63 }, 64 "t7_xxhash_vdx": { 65 "type": "consistent_lookup", 66 "params": { 67 "table": "t7_xxhash_idx", 68 "from": "phone", 69 "to": "keyspace_id", 70 "ignore_nulls": "true" 71 }, 72 "owner": "t7_xxhash" 73 }, 74 "t9_id_to_keyspace_id_idx": { 75 "type": "lookup_unique", 76 "params": { 77 "table": "t9_id_to_keyspace_id_idx", 78 "from": "id", 79 "to": "keyspace_id" 80 }, 81 "owner": "t9" 82 }, 83 "t10_id_to_keyspace_id_idx": { 84 "type": "lookup_unique", 85 "params": { 86 "autocommit": "true", 87 "table": "t10_id_to_keyspace_id_idx", 88 "from": "id", 89 "to": "keyspace_id" 90 }, 91 "owner": "t10" 92 } 93 }, 94 "tables": { 95 "t1": { 96 "column_vindexes": [ 97 { 98 "column": "id1", 99 "name": "hash" 100 }, 101 { 102 "column": "id2", 103 "name": "t1_id2_vdx" 104 } 105 ] 106 }, 107 "t1_id2_idx": { 108 "column_vindexes": [ 109 { 110 "column": "id2", 111 "name": "hash" 112 } 113 ] 114 }, 115 "t2": { 116 "column_vindexes": [ 117 { 118 "column": "id3", 119 "name": "hash" 120 }, 121 { 122 "column": "id4", 123 "name": "t2_id4_idx" 124 } 125 ] 126 }, 127 "t2_id4_idx": { 128 "column_vindexes": [ 129 { 130 "column": "id4", 131 "name": "hash" 132 } 133 ] 134 }, 135 "t3": { 136 "column_vindexes": [ 137 { 138 "column": "id6", 139 "name": "hash" 140 }, 141 { 142 "column": "id7", 143 "name": "t3_id7_vdx" 144 } 145 ] 146 }, 147 "t3_id7_idx": { 148 "column_vindexes": [ 149 { 150 "column": "id7", 151 "name": "hash" 152 } 153 ] 154 }, 155 "t4": { 156 "column_vindexes": [ 157 { 158 "column": "id1", 159 "name": "hash" 160 }, 161 { 162 "columns": ["id2", "id1"], 163 "name": "t4_id2_vdx" 164 } 165 ] 166 }, 167 "t4_id2_idx": { 168 "column_vindexes": [ 169 { 170 "column": "id2", 171 "name": "unicode_loose_md5" 172 } 173 ] 174 }, 175 "t6": { 176 "column_vindexes": [ 177 { 178 "column": "id1", 179 "name": "hash" 180 }, 181 { 182 "columns": ["id2", "id1"], 183 "name": "t6_id2_vdx" 184 } 185 ] 186 }, 187 "t6_id2_idx": { 188 "column_vindexes": [ 189 { 190 "column": "id2", 191 "name": "xxhash" 192 } 193 ] 194 }, 195 "t5_null_vindex": { 196 "column_vindexes": [ 197 { 198 "column": "idx", 199 "name": "xxhash" 200 } 201 ] 202 }, 203 "vstream_test": { 204 "column_vindexes": [ 205 { 206 "column": "id", 207 "name": "hash" 208 } 209 ] 210 }, 211 "aggr_test": { 212 "column_vindexes": [ 213 { 214 "column": "id", 215 "name": "hash" 216 } 217 ], 218 "columns": [ 219 { 220 "name": "val1", 221 "type": "VARCHAR" 222 } 223 ] 224 }, 225 "t7_xxhash": { 226 "column_vindexes": [ 227 { 228 "column": "uid", 229 "name": "unicode_loose_xxhash" 230 }, 231 { 232 "column": "phone", 233 "name": "t7_xxhash_vdx" 234 } 235 ] 236 }, 237 "t7_xxhash_idx": { 238 "column_vindexes": [ 239 { 240 "column": "phone", 241 "name": "unicode_loose_xxhash" 242 } 243 ] 244 }, 245 "t7_fk": { 246 "column_vindexes": [ 247 { 248 "column": "t7_uid", 249 "name": "unicode_loose_xxhash" 250 } 251 ] 252 }, 253 "t8": { 254 "column_vindexes": [ 255 { 256 "column": "parent_id", 257 "name": "hash" 258 }, 259 { 260 "column": "t9_id", 261 "name": "t9_id_to_keyspace_id_idx" 262 } 263 ] 264 }, 265 "t9": { 266 "column_vindexes": [ 267 { 268 "column": "parent_id", 269 "name": "hash" 270 }, 271 { 272 "column": "id", 273 "name": "t9_id_to_keyspace_id_idx" 274 } 275 ] 276 }, 277 "t9_id_to_keyspace_id_idx": { 278 "column_vindexes": [ 279 { 280 "column": "id", 281 "name": "hash" 282 } 283 ] 284 }, 285 "t10": { 286 "column_vindexes": [ 287 { 288 "column": "sharding_key", 289 "name": "hash" 290 }, 291 { 292 "column": "id", 293 "name": "t10_id_to_keyspace_id_idx" 294 } 295 ] 296 }, 297 "t10_id_to_keyspace_id_idx": { 298 "column_vindexes": [ 299 { 300 "column": "id", 301 "name": "hash" 302 } 303 ] 304 } 305 } 306 }