File
Blob: drizzle/repo-do/meta/0002_snapshot.json
| 1 | { |
| 2 | "version": "6", |
| 3 | "dialect": "sqlite", |
| 4 | "id": "8b492774-a545-4435-ae8c-40f50b3fb100", |
| 5 | "prevId": "c7b5c1b0-16ab-416f-a683-292a825c4a32", |
| 6 | "tables": { |
| 7 | "hydr_cover": { |
| 8 | "name": "hydr_cover", |
| 9 | "columns": { |
| 10 | "work_id": { |
| 11 | "name": "work_id", |
| 12 | "type": "text", |
| 13 | "primaryKey": false, |
| 14 | "notNull": true, |
| 15 | "autoincrement": false |
| 16 | }, |
| 17 | "oid": { |
| 18 | "name": "oid", |
| 19 | "type": "text", |
| 20 | "primaryKey": false, |
| 21 | "notNull": true, |
| 22 | "autoincrement": false |
| 23 | } |
| 24 | }, |
| 25 | "indexes": { |
| 26 | "idx_hydr_cover_oid": { |
| 27 | "name": "idx_hydr_cover_oid", |
| 28 | "columns": ["oid"], |
| 29 | "isUnique": false |
| 30 | } |
| 31 | }, |
| 32 | "foreignKeys": {}, |
| 33 | "compositePrimaryKeys": { |
| 34 | "hydr_cover_pk": { |
| 35 | "columns": ["work_id", "oid"], |
| 36 | "name": "hydr_cover_pk" |
| 37 | } |
| 38 | }, |
| 39 | "uniqueConstraints": {}, |
| 40 | "checkConstraints": {} |
| 41 | }, |
| 42 | "hydr_pending": { |
| 43 | "name": "hydr_pending", |
| 44 | "columns": { |
| 45 | "work_id": { |
| 46 | "name": "work_id", |
| 47 | "type": "text", |
| 48 | "primaryKey": false, |
| 49 | "notNull": true, |
| 50 | "autoincrement": false |
| 51 | }, |
| 52 | "kind": { |
| 53 | "name": "kind", |
| 54 | "type": "text", |
| 55 | "primaryKey": false, |
| 56 | "notNull": true, |
| 57 | "autoincrement": false |
| 58 | }, |
| 59 | "oid": { |
| 60 | "name": "oid", |
| 61 | "type": "text", |
| 62 | "primaryKey": false, |
| 63 | "notNull": true, |
| 64 | "autoincrement": false |
| 65 | } |
| 66 | }, |
| 67 | "indexes": { |
| 68 | "idx_hydr_pending_work_kind": { |
| 69 | "name": "idx_hydr_pending_work_kind", |
| 70 | "columns": ["work_id", "kind"], |
| 71 | "isUnique": false |
| 72 | } |
| 73 | }, |
| 74 | "foreignKeys": {}, |
| 75 | "compositePrimaryKeys": { |
| 76 | "hydr_pending_pk": { |
| 77 | "columns": ["work_id", "kind", "oid"], |
| 78 | "name": "hydr_pending_pk" |
| 79 | } |
| 80 | }, |
| 81 | "uniqueConstraints": {}, |
| 82 | "checkConstraints": { |
| 83 | "chk_hydr_pending_kind": { |
| 84 | "name": "chk_hydr_pending_kind", |
| 85 | "value": "\"kind\" IN ('base','loose')" |
| 86 | } |
| 87 | } |
| 88 | }, |
| 89 | "pack_catalog": { |
| 90 | "name": "pack_catalog", |
| 91 | "columns": { |
| 92 | "pack_key": { |
| 93 | "name": "pack_key", |
| 94 | "type": "text", |
| 95 | "primaryKey": true, |
| 96 | "notNull": true, |
| 97 | "autoincrement": false |
| 98 | }, |
| 99 | "kind": { |
| 100 | "name": "kind", |
| 101 | "type": "text", |
| 102 | "primaryKey": false, |
| 103 | "notNull": true, |
| 104 | "autoincrement": false |
| 105 | }, |
| 106 | "state": { |
| 107 | "name": "state", |
| 108 | "type": "text", |
| 109 | "primaryKey": false, |
| 110 | "notNull": true, |
| 111 | "autoincrement": false |
| 112 | }, |
| 113 | "tier": { |
| 114 | "name": "tier", |
| 115 | "type": "integer", |
| 116 | "primaryKey": false, |
| 117 | "notNull": true, |
| 118 | "autoincrement": false |
| 119 | }, |
| 120 | "seq_lo": { |
| 121 | "name": "seq_lo", |
| 122 | "type": "integer", |
| 123 | "primaryKey": false, |
| 124 | "notNull": true, |
| 125 | "autoincrement": false |
| 126 | }, |
| 127 | "seq_hi": { |
| 128 | "name": "seq_hi", |
| 129 | "type": "integer", |
| 130 | "primaryKey": false, |
| 131 | "notNull": true, |
| 132 | "autoincrement": false |
| 133 | }, |
| 134 | "object_count": { |
| 135 | "name": "object_count", |
| 136 | "type": "integer", |
| 137 | "primaryKey": false, |
| 138 | "notNull": true, |
| 139 | "autoincrement": false |
| 140 | }, |
| 141 | "pack_bytes": { |
| 142 | "name": "pack_bytes", |
| 143 | "type": "integer", |
| 144 | "primaryKey": false, |
| 145 | "notNull": true, |
| 146 | "autoincrement": false |
| 147 | }, |
| 148 | "idx_bytes": { |
| 149 | "name": "idx_bytes", |
| 150 | "type": "integer", |
| 151 | "primaryKey": false, |
| 152 | "notNull": true, |
| 153 | "autoincrement": false |
| 154 | }, |
| 155 | "created_at": { |
| 156 | "name": "created_at", |
| 157 | "type": "integer", |
| 158 | "primaryKey": false, |
| 159 | "notNull": true, |
| 160 | "autoincrement": false |
| 161 | }, |
| 162 | "superseded_by": { |
| 163 | "name": "superseded_by", |
| 164 | "type": "text", |
| 165 | "primaryKey": false, |
| 166 | "notNull": false, |
| 167 | "autoincrement": false |
| 168 | } |
| 169 | }, |
| 170 | "indexes": { |
| 171 | "idx_pack_catalog_state_seqhi": { |
| 172 | "name": "idx_pack_catalog_state_seqhi", |
| 173 | "columns": ["state", "\"seq_hi\" desc"], |
| 174 | "isUnique": false |
| 175 | }, |
| 176 | "idx_pack_catalog_state_tier_seqlo": { |
| 177 | "name": "idx_pack_catalog_state_tier_seqlo", |
| 178 | "columns": ["state", "tier", "seq_lo"], |
| 179 | "isUnique": false |
| 180 | } |
| 181 | }, |
| 182 | "foreignKeys": {}, |
| 183 | "compositePrimaryKeys": {}, |
| 184 | "uniqueConstraints": {}, |
| 185 | "checkConstraints": { |
| 186 | "chk_pack_catalog_kind": { |
| 187 | "name": "chk_pack_catalog_kind", |
| 188 | "value": "\"kind\" IN ('receive','compact','legacy')" |
| 189 | }, |
| 190 | "chk_pack_catalog_state": { |
| 191 | "name": "chk_pack_catalog_state", |
| 192 | "value": "\"state\" IN ('active','superseded')" |
| 193 | }, |
| 194 | "chk_pack_catalog_tier": { |
| 195 | "name": "chk_pack_catalog_tier", |
| 196 | "value": "\"tier\" >= 0" |
| 197 | }, |
| 198 | "chk_pack_catalog_seq": { |
| 199 | "name": "chk_pack_catalog_seq", |
| 200 | "value": "\"seq_lo\" <= \"seq_hi\"" |
| 201 | }, |
| 202 | "chk_pack_catalog_object_count": { |
| 203 | "name": "chk_pack_catalog_object_count", |
| 204 | "value": "\"object_count\" >= 0" |
| 205 | }, |
| 206 | "chk_pack_catalog_pack_bytes": { |
| 207 | "name": "chk_pack_catalog_pack_bytes", |
| 208 | "value": "\"pack_bytes\" >= 0" |
| 209 | }, |
| 210 | "chk_pack_catalog_idx_bytes": { |
| 211 | "name": "chk_pack_catalog_idx_bytes", |
| 212 | "value": "\"idx_bytes\" >= 0" |
| 213 | } |
| 214 | } |
| 215 | }, |
| 216 | "pack_objects": { |
| 217 | "name": "pack_objects", |
| 218 | "columns": { |
| 219 | "pack_key": { |
| 220 | "name": "pack_key", |
| 221 | "type": "text", |
| 222 | "primaryKey": false, |
| 223 | "notNull": true, |
| 224 | "autoincrement": false |
| 225 | }, |
| 226 | "oid": { |
| 227 | "name": "oid", |
| 228 | "type": "text", |
| 229 | "primaryKey": false, |
| 230 | "notNull": true, |
| 231 | "autoincrement": false |
| 232 | } |
| 233 | }, |
| 234 | "indexes": { |
| 235 | "idx_pack_objects_oid": { |
| 236 | "name": "idx_pack_objects_oid", |
| 237 | "columns": ["oid"], |
| 238 | "isUnique": false |
| 239 | } |
| 240 | }, |
| 241 | "foreignKeys": {}, |
| 242 | "compositePrimaryKeys": { |
| 243 | "pack_objects_pk": { |
| 244 | "columns": ["pack_key", "oid"], |
| 245 | "name": "pack_objects_pk" |
| 246 | } |
| 247 | }, |
| 248 | "uniqueConstraints": {}, |
| 249 | "checkConstraints": {} |
| 250 | } |
| 251 | }, |
| 252 | "views": {}, |
| 253 | "enums": {}, |
| 254 | "_meta": { |
| 255 | "schemas": {}, |
| 256 | "tables": {}, |
| 257 | "columns": {} |
| 258 | }, |
| 259 | "internal": { |
| 260 | "indexes": { |
| 261 | "idx_pack_catalog_state_seqhi": { |
| 262 | "columns": { |
| 263 | "\"seq_hi\" desc": { |
| 264 | "isExpression": true |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | } |