@kudos-protocol/storage-sqlite 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,361 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "20b17b89-42df-4849-be51-99c4bf358162",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "events": {
8
+ "name": "events",
9
+ "columns": {
10
+ "pool_id": {
11
+ "name": "pool_id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "event_id": {
18
+ "name": "event_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "recipient": {
25
+ "name": "recipient",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "sender": {
32
+ "name": "sender",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "ts": {
39
+ "name": "ts",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "scope_id": {
46
+ "name": "scope_id",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "kudos": {
53
+ "name": "kudos",
54
+ "type": "integer",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false,
58
+ "default": 1
59
+ },
60
+ "emoji": {
61
+ "name": "emoji",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false,
65
+ "autoincrement": false
66
+ },
67
+ "title": {
68
+ "name": "title",
69
+ "type": "text",
70
+ "primaryKey": false,
71
+ "notNull": false,
72
+ "autoincrement": false
73
+ },
74
+ "visibility": {
75
+ "name": "visibility",
76
+ "type": "text",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false,
80
+ "default": "'PRIVATE'"
81
+ },
82
+ "meta": {
83
+ "name": "meta",
84
+ "type": "text",
85
+ "primaryKey": false,
86
+ "notNull": false,
87
+ "autoincrement": false
88
+ },
89
+ "inserted_at": {
90
+ "name": "inserted_at",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": true,
94
+ "autoincrement": false,
95
+ "default": "(datetime('now'))"
96
+ }
97
+ },
98
+ "indexes": {
99
+ "idx_events_pool_ts_id": {
100
+ "name": "idx_events_pool_ts_id",
101
+ "columns": [
102
+ "pool_id",
103
+ "ts",
104
+ "event_id"
105
+ ],
106
+ "isUnique": false
107
+ }
108
+ },
109
+ "foreignKeys": {},
110
+ "compositePrimaryKeys": {
111
+ "events_pool_id_event_id_pk": {
112
+ "columns": [
113
+ "pool_id",
114
+ "event_id"
115
+ ],
116
+ "name": "events_pool_id_event_id_pk"
117
+ }
118
+ },
119
+ "uniqueConstraints": {},
120
+ "checkConstraints": {}
121
+ },
122
+ "outbox": {
123
+ "name": "outbox",
124
+ "columns": {
125
+ "id": {
126
+ "name": "id",
127
+ "type": "integer",
128
+ "primaryKey": true,
129
+ "notNull": true,
130
+ "autoincrement": true
131
+ },
132
+ "pool_id": {
133
+ "name": "pool_id",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true,
137
+ "autoincrement": false
138
+ },
139
+ "event_id": {
140
+ "name": "event_id",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ },
146
+ "payload": {
147
+ "name": "payload",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ },
153
+ "created_at": {
154
+ "name": "created_at",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false,
159
+ "default": "(datetime('now'))"
160
+ },
161
+ "delivered": {
162
+ "name": "delivered",
163
+ "type": "integer",
164
+ "primaryKey": false,
165
+ "notNull": true,
166
+ "autoincrement": false,
167
+ "default": 0
168
+ },
169
+ "delivered_at": {
170
+ "name": "delivered_at",
171
+ "type": "text",
172
+ "primaryKey": false,
173
+ "notNull": false,
174
+ "autoincrement": false
175
+ },
176
+ "attempts": {
177
+ "name": "attempts",
178
+ "type": "integer",
179
+ "primaryKey": false,
180
+ "notNull": true,
181
+ "autoincrement": false,
182
+ "default": 0
183
+ },
184
+ "last_error": {
185
+ "name": "last_error",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": false,
189
+ "autoincrement": false
190
+ }
191
+ },
192
+ "indexes": {
193
+ "idx_outbox_pending": {
194
+ "name": "idx_outbox_pending",
195
+ "columns": [
196
+ "delivered",
197
+ "created_at"
198
+ ],
199
+ "isUnique": false
200
+ }
201
+ },
202
+ "foreignKeys": {},
203
+ "compositePrimaryKeys": {},
204
+ "uniqueConstraints": {},
205
+ "checkConstraints": {}
206
+ },
207
+ "pool_recipient_totals": {
208
+ "name": "pool_recipient_totals",
209
+ "columns": {
210
+ "pool_id": {
211
+ "name": "pool_id",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true,
215
+ "autoincrement": false
216
+ },
217
+ "recipient": {
218
+ "name": "recipient",
219
+ "type": "text",
220
+ "primaryKey": false,
221
+ "notNull": true,
222
+ "autoincrement": false
223
+ },
224
+ "kudos": {
225
+ "name": "kudos",
226
+ "type": "integer",
227
+ "primaryKey": false,
228
+ "notNull": true,
229
+ "autoincrement": false,
230
+ "default": 0
231
+ },
232
+ "emojis": {
233
+ "name": "emojis",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": true,
237
+ "autoincrement": false,
238
+ "default": "'[]'"
239
+ }
240
+ },
241
+ "indexes": {
242
+ "idx_recipient_totals_by_kudos": {
243
+ "name": "idx_recipient_totals_by_kudos",
244
+ "columns": [
245
+ "pool_id",
246
+ "kudos"
247
+ ],
248
+ "isUnique": false
249
+ }
250
+ },
251
+ "foreignKeys": {},
252
+ "compositePrimaryKeys": {
253
+ "pool_recipient_totals_pool_id_recipient_pk": {
254
+ "columns": [
255
+ "pool_id",
256
+ "recipient"
257
+ ],
258
+ "name": "pool_recipient_totals_pool_id_recipient_pk"
259
+ }
260
+ },
261
+ "uniqueConstraints": {},
262
+ "checkConstraints": {}
263
+ },
264
+ "pool_scope_latest": {
265
+ "name": "pool_scope_latest",
266
+ "columns": {
267
+ "pool_id": {
268
+ "name": "pool_id",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": true,
272
+ "autoincrement": false
273
+ },
274
+ "recipient": {
275
+ "name": "recipient",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": true,
279
+ "autoincrement": false
280
+ },
281
+ "scope_id": {
282
+ "name": "scope_id",
283
+ "type": "text",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "autoincrement": false
287
+ },
288
+ "event_id": {
289
+ "name": "event_id",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false
294
+ },
295
+ "kudos": {
296
+ "name": "kudos",
297
+ "type": "integer",
298
+ "primaryKey": false,
299
+ "notNull": true,
300
+ "autoincrement": false
301
+ },
302
+ "ts": {
303
+ "name": "ts",
304
+ "type": "text",
305
+ "primaryKey": false,
306
+ "notNull": true,
307
+ "autoincrement": false
308
+ }
309
+ },
310
+ "indexes": {},
311
+ "foreignKeys": {},
312
+ "compositePrimaryKeys": {
313
+ "pool_scope_latest_pool_id_recipient_scope_id_pk": {
314
+ "columns": [
315
+ "pool_id",
316
+ "recipient",
317
+ "scope_id"
318
+ ],
319
+ "name": "pool_scope_latest_pool_id_recipient_scope_id_pk"
320
+ }
321
+ },
322
+ "uniqueConstraints": {},
323
+ "checkConstraints": {}
324
+ },
325
+ "pool_totals": {
326
+ "name": "pool_totals",
327
+ "columns": {
328
+ "pool_id": {
329
+ "name": "pool_id",
330
+ "type": "text",
331
+ "primaryKey": true,
332
+ "notNull": true,
333
+ "autoincrement": false
334
+ },
335
+ "kudos": {
336
+ "name": "kudos",
337
+ "type": "integer",
338
+ "primaryKey": false,
339
+ "notNull": true,
340
+ "autoincrement": false,
341
+ "default": 0
342
+ }
343
+ },
344
+ "indexes": {},
345
+ "foreignKeys": {},
346
+ "compositePrimaryKeys": {},
347
+ "uniqueConstraints": {},
348
+ "checkConstraints": {}
349
+ }
350
+ },
351
+ "views": {},
352
+ "enums": {},
353
+ "_meta": {
354
+ "schemas": {},
355
+ "tables": {},
356
+ "columns": {}
357
+ },
358
+ "internal": {
359
+ "indexes": {}
360
+ }
361
+ }