Skip to content
File

Blob: drizzle/repo-do/meta/0003_snapshot.json

json154 lines
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "f4082a2d-a685-440a-8f05-93f7aa6b1dfc",
5 "prevId": "8b492774-a545-4435-ae8c-40f50b3fb100",
6 "tables": {
7 "pack_catalog": {
8 "name": "pack_catalog",
9 "columns": {
10 "pack_key": {
11 "name": "pack_key",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "kind": {
18 "name": "kind",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": true,
22 "autoincrement": false
23 },
24 "state": {
25 "name": "state",
26 "type": "text",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false
30 },
31 "tier": {
32 "name": "tier",
33 "type": "integer",
34 "primaryKey": false,
35 "notNull": true,
36 "autoincrement": false
37 },
38 "seq_lo": {
39 "name": "seq_lo",
40 "type": "integer",
41 "primaryKey": false,
42 "notNull": true,
43 "autoincrement": false
44 },
45 "seq_hi": {
46 "name": "seq_hi",
47 "type": "integer",
48 "primaryKey": false,
49 "notNull": true,
50 "autoincrement": false
51 },
52 "object_count": {
53 "name": "object_count",
54 "type": "integer",
55 "primaryKey": false,
56 "notNull": true,
57 "autoincrement": false
58 },
59 "pack_bytes": {
60 "name": "pack_bytes",
61 "type": "integer",
62 "primaryKey": false,
63 "notNull": true,
64 "autoincrement": false
65 },
66 "idx_bytes": {
67 "name": "idx_bytes",
68 "type": "integer",
69 "primaryKey": false,
70 "notNull": true,
71 "autoincrement": false
72 },
73 "created_at": {
74 "name": "created_at",
75 "type": "integer",
76 "primaryKey": false,
77 "notNull": true,
78 "autoincrement": false
79 },
80 "superseded_by": {
81 "name": "superseded_by",
82 "type": "text",
83 "primaryKey": false,
84 "notNull": false,
85 "autoincrement": false
86 }
87 },
88 "indexes": {
89 "idx_pack_catalog_state_seqhi": {
90 "name": "idx_pack_catalog_state_seqhi",
91 "columns": ["state", "\"seq_hi\" desc"],
92 "isUnique": false
93 },
94 "idx_pack_catalog_state_tier_seqlo": {
95 "name": "idx_pack_catalog_state_tier_seqlo",
96 "columns": ["state", "tier", "seq_lo"],
97 "isUnique": false
98 }
99 },
100 "foreignKeys": {},
101 "compositePrimaryKeys": {},
102 "uniqueConstraints": {},
103 "checkConstraints": {
104 "chk_pack_catalog_kind": {
105 "name": "chk_pack_catalog_kind",
106 "value": "\"kind\" IN ('receive','compact','legacy')"
107 },
108 "chk_pack_catalog_state": {
109 "name": "chk_pack_catalog_state",
110 "value": "\"state\" IN ('active','superseded')"
111 },
112 "chk_pack_catalog_tier": {
113 "name": "chk_pack_catalog_tier",
114 "value": "\"tier\" >= 0"
115 },
116 "chk_pack_catalog_seq": {
117 "name": "chk_pack_catalog_seq",
118 "value": "\"seq_lo\" <= \"seq_hi\""
119 },
120 "chk_pack_catalog_object_count": {
121 "name": "chk_pack_catalog_object_count",
122 "value": "\"object_count\" >= 0"
123 },
124 "chk_pack_catalog_pack_bytes": {
125 "name": "chk_pack_catalog_pack_bytes",
126 "value": "\"pack_bytes\" >= 0"
127 },
128 "chk_pack_catalog_idx_bytes": {
129 "name": "chk_pack_catalog_idx_bytes",
130 "value": "\"idx_bytes\" >= 0"
131 }
132 }
133 }
134 },
135 "views": {},
136 "enums": {},
137 "_meta": {
138 "schemas": {},
139 "tables": {},
140 "columns": {}
141 },
142 "internal": {
143 "indexes": {
144 "idx_pack_catalog_state_seqhi": {
145 "columns": {
146 "\"seq_hi\" desc": {
147 "isExpression": true
148 }
149 }
150 }
151 }
152 }
153}