tempest.games 0.2.11 → 0.2.13

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,535 @@
1
+ {
2
+ "id": "d1f9be67-f652-4910-83e0-58a795a7415d",
3
+ "prevId": "4695745b-981c-4af5-ab2a-a8dd779414e4",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accountActions": {
8
+ "name": "accountActions",
9
+ "schema": "",
10
+ "columns": {
11
+ "userId": {
12
+ "name": "userId",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "action": {
18
+ "name": "action",
19
+ "type": "accountAction",
20
+ "typeSchema": "public",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "code": {
25
+ "name": "code",
26
+ "type": "varchar(254)",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "wrongCodeCount": {
31
+ "name": "wrongCodeCount",
32
+ "type": "integer",
33
+ "primaryKey": false,
34
+ "notNull": true,
35
+ "default": 0
36
+ },
37
+ "expiresAt": {
38
+ "name": "expiresAt",
39
+ "type": "timestamp with time zone",
40
+ "primaryKey": false,
41
+ "notNull": true
42
+ },
43
+ "expiresAtIso": {
44
+ "name": "expiresAtIso",
45
+ "type": "varchar(24)",
46
+ "primaryKey": false,
47
+ "notNull": true
48
+ }
49
+ },
50
+ "indexes": {},
51
+ "foreignKeys": {
52
+ "accountActions_userId_users_id_fk": {
53
+ "name": "accountActions_userId_users_id_fk",
54
+ "tableFrom": "accountActions",
55
+ "tableTo": "users",
56
+ "columnsFrom": [
57
+ "userId"
58
+ ],
59
+ "columnsTo": [
60
+ "id"
61
+ ],
62
+ "onDelete": "no action",
63
+ "onUpdate": "no action"
64
+ }
65
+ },
66
+ "compositePrimaryKeys": {},
67
+ "uniqueConstraints": {},
68
+ "policies": {},
69
+ "checkConstraints": {},
70
+ "isRLSEnabled": false
71
+ },
72
+ "public.banishedIps": {
73
+ "name": "banishedIps",
74
+ "schema": "",
75
+ "columns": {
76
+ "ip": {
77
+ "name": "ip",
78
+ "type": "varchar(45)",
79
+ "primaryKey": true,
80
+ "notNull": true
81
+ },
82
+ "reason": {
83
+ "name": "reason",
84
+ "type": "varchar(2048)",
85
+ "primaryKey": false,
86
+ "notNull": true
87
+ },
88
+ "banishedAt": {
89
+ "name": "banishedAt",
90
+ "type": "timestamp with time zone",
91
+ "primaryKey": false,
92
+ "notNull": true,
93
+ "default": "now()"
94
+ },
95
+ "banishedAtIso": {
96
+ "name": "banishedAtIso",
97
+ "type": "varchar(24)",
98
+ "primaryKey": false,
99
+ "notNull": true
100
+ },
101
+ "banishedUntil": {
102
+ "name": "banishedUntil",
103
+ "type": "timestamp with time zone",
104
+ "primaryKey": false,
105
+ "notNull": false
106
+ },
107
+ "banishedUntilIso": {
108
+ "name": "banishedUntilIso",
109
+ "type": "varchar(24)",
110
+ "primaryKey": false,
111
+ "notNull": false
112
+ }
113
+ },
114
+ "indexes": {},
115
+ "foreignKeys": {},
116
+ "compositePrimaryKeys": {},
117
+ "uniqueConstraints": {},
118
+ "policies": {},
119
+ "checkConstraints": {},
120
+ "isRLSEnabled": false
121
+ },
122
+ "public.games": {
123
+ "name": "games",
124
+ "schema": "",
125
+ "columns": {
126
+ "id": {
127
+ "name": "id",
128
+ "type": "uuid",
129
+ "primaryKey": true,
130
+ "notNull": true,
131
+ "default": "gen_random_uuid()"
132
+ }
133
+ },
134
+ "indexes": {},
135
+ "foreignKeys": {},
136
+ "compositePrimaryKeys": {},
137
+ "uniqueConstraints": {},
138
+ "policies": {},
139
+ "checkConstraints": {},
140
+ "isRLSEnabled": false
141
+ },
142
+ "public.passwordResetAttempts": {
143
+ "name": "passwordResetAttempts",
144
+ "schema": "",
145
+ "columns": {
146
+ "id": {
147
+ "name": "id",
148
+ "type": "uuid",
149
+ "primaryKey": true,
150
+ "notNull": true,
151
+ "default": "gen_random_uuid()"
152
+ },
153
+ "userId": {
154
+ "name": "userId",
155
+ "type": "uuid",
156
+ "primaryKey": false,
157
+ "notNull": true
158
+ },
159
+ "requestedIp": {
160
+ "name": "requestedIp",
161
+ "type": "varchar(45)",
162
+ "primaryKey": false,
163
+ "notNull": true
164
+ },
165
+ "requestedAt": {
166
+ "name": "requestedAt",
167
+ "type": "timestamp with time zone",
168
+ "primaryKey": false,
169
+ "notNull": true,
170
+ "default": "now()"
171
+ },
172
+ "requestedAtIso": {
173
+ "name": "requestedAtIso",
174
+ "type": "varchar(24)",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "succeededIp": {
179
+ "name": "succeededIp",
180
+ "type": "varchar(45)",
181
+ "primaryKey": false,
182
+ "notNull": false
183
+ },
184
+ "succeededAt": {
185
+ "name": "succeededAt",
186
+ "type": "timestamp with time zone",
187
+ "primaryKey": false,
188
+ "notNull": false
189
+ },
190
+ "succeededAtIso": {
191
+ "name": "succeededAtIso",
192
+ "type": "varchar(24)",
193
+ "primaryKey": false,
194
+ "notNull": false
195
+ },
196
+ "verificationMethod": {
197
+ "name": "verificationMethod",
198
+ "type": "twoFactorMethod",
199
+ "typeSchema": "public",
200
+ "primaryKey": false,
201
+ "notNull": true
202
+ }
203
+ },
204
+ "indexes": {},
205
+ "foreignKeys": {
206
+ "passwordResetAttempts_userId_users_id_fk": {
207
+ "name": "passwordResetAttempts_userId_users_id_fk",
208
+ "tableFrom": "passwordResetAttempts",
209
+ "tableTo": "users",
210
+ "columnsFrom": [
211
+ "userId"
212
+ ],
213
+ "columnsTo": [
214
+ "id"
215
+ ],
216
+ "onDelete": "cascade",
217
+ "onUpdate": "no action"
218
+ }
219
+ },
220
+ "compositePrimaryKeys": {},
221
+ "uniqueConstraints": {},
222
+ "policies": {},
223
+ "checkConstraints": {},
224
+ "isRLSEnabled": false
225
+ },
226
+ "public.players": {
227
+ "name": "players",
228
+ "schema": "",
229
+ "columns": {
230
+ "userId": {
231
+ "name": "userId",
232
+ "type": "uuid",
233
+ "primaryKey": false,
234
+ "notNull": true
235
+ },
236
+ "gameId": {
237
+ "name": "gameId",
238
+ "type": "uuid",
239
+ "primaryKey": false,
240
+ "notNull": true
241
+ },
242
+ "score": {
243
+ "name": "score",
244
+ "type": "integer",
245
+ "primaryKey": false,
246
+ "notNull": true
247
+ }
248
+ },
249
+ "indexes": {},
250
+ "foreignKeys": {
251
+ "players_userId_users_id_fk": {
252
+ "name": "players_userId_users_id_fk",
253
+ "tableFrom": "players",
254
+ "tableTo": "users",
255
+ "columnsFrom": [
256
+ "userId"
257
+ ],
258
+ "columnsTo": [
259
+ "id"
260
+ ],
261
+ "onDelete": "cascade",
262
+ "onUpdate": "no action"
263
+ },
264
+ "players_gameId_games_id_fk": {
265
+ "name": "players_gameId_games_id_fk",
266
+ "tableFrom": "players",
267
+ "tableTo": "games",
268
+ "columnsFrom": [
269
+ "gameId"
270
+ ],
271
+ "columnsTo": [
272
+ "id"
273
+ ],
274
+ "onDelete": "cascade",
275
+ "onUpdate": "no action"
276
+ }
277
+ },
278
+ "compositePrimaryKeys": {
279
+ "players_userId_gameId_pk": {
280
+ "name": "players_userId_gameId_pk",
281
+ "columns": [
282
+ "userId",
283
+ "gameId"
284
+ ]
285
+ }
286
+ },
287
+ "uniqueConstraints": {},
288
+ "policies": {},
289
+ "checkConstraints": {},
290
+ "isRLSEnabled": false
291
+ },
292
+ "public.signInHistory": {
293
+ "name": "signInHistory",
294
+ "schema": "",
295
+ "columns": {
296
+ "id": {
297
+ "name": "id",
298
+ "type": "uuid",
299
+ "primaryKey": true,
300
+ "notNull": true,
301
+ "default": "gen_random_uuid()"
302
+ },
303
+ "userId": {
304
+ "name": "userId",
305
+ "type": "uuid",
306
+ "primaryKey": false,
307
+ "notNull": false
308
+ },
309
+ "signInTime": {
310
+ "name": "signInTime",
311
+ "type": "timestamp with time zone",
312
+ "primaryKey": false,
313
+ "notNull": true,
314
+ "default": "now()"
315
+ },
316
+ "signInTimeIso": {
317
+ "name": "signInTimeIso",
318
+ "type": "varchar(24)",
319
+ "primaryKey": false,
320
+ "notNull": true
321
+ },
322
+ "ipAddress": {
323
+ "name": "ipAddress",
324
+ "type": "varchar(45)",
325
+ "primaryKey": false,
326
+ "notNull": true
327
+ },
328
+ "userAgent": {
329
+ "name": "userAgent",
330
+ "type": "varchar(1024)",
331
+ "primaryKey": false,
332
+ "notNull": false
333
+ },
334
+ "successful": {
335
+ "name": "successful",
336
+ "type": "boolean",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "default": false
340
+ }
341
+ },
342
+ "indexes": {},
343
+ "foreignKeys": {
344
+ "signInHistory_userId_users_id_fk": {
345
+ "name": "signInHistory_userId_users_id_fk",
346
+ "tableFrom": "signInHistory",
347
+ "tableTo": "users",
348
+ "columnsFrom": [
349
+ "userId"
350
+ ],
351
+ "columnsTo": [
352
+ "id"
353
+ ],
354
+ "onDelete": "cascade",
355
+ "onUpdate": "no action"
356
+ }
357
+ },
358
+ "compositePrimaryKeys": {},
359
+ "uniqueConstraints": {},
360
+ "policies": {},
361
+ "checkConstraints": {},
362
+ "isRLSEnabled": false
363
+ },
364
+ "public.users": {
365
+ "name": "users",
366
+ "schema": "",
367
+ "columns": {
368
+ "id": {
369
+ "name": "id",
370
+ "type": "uuid",
371
+ "primaryKey": true,
372
+ "notNull": true,
373
+ "default": "gen_random_uuid()"
374
+ },
375
+ "username": {
376
+ "name": "username",
377
+ "type": "varchar(16)",
378
+ "primaryKey": false,
379
+ "notNull": true
380
+ },
381
+ "emailOffered": {
382
+ "name": "emailOffered",
383
+ "type": "varchar(254)",
384
+ "primaryKey": false,
385
+ "notNull": true
386
+ },
387
+ "emailVerified": {
388
+ "name": "emailVerified",
389
+ "type": "varchar(254)",
390
+ "primaryKey": false,
391
+ "notNull": false
392
+ },
393
+ "password": {
394
+ "name": "password",
395
+ "type": "varchar(254)",
396
+ "primaryKey": false,
397
+ "notNull": false
398
+ },
399
+ "createdAt": {
400
+ "name": "createdAt",
401
+ "type": "timestamp with time zone",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "default": "now()"
405
+ },
406
+ "createdAtIso": {
407
+ "name": "createdAtIso",
408
+ "type": "varchar(24)",
409
+ "primaryKey": false,
410
+ "notNull": true
411
+ },
412
+ "createdIp": {
413
+ "name": "createdIp",
414
+ "type": "varchar(45)",
415
+ "primaryKey": false,
416
+ "notNull": true
417
+ },
418
+ "isActive": {
419
+ "name": "isActive",
420
+ "type": "boolean",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "default": false
424
+ },
425
+ "verifiedAt": {
426
+ "name": "verifiedAt",
427
+ "type": "timestamp with time zone",
428
+ "primaryKey": false,
429
+ "notNull": false
430
+ },
431
+ "verifiedAtIso": {
432
+ "name": "verifiedAtIso",
433
+ "type": "varchar(24)",
434
+ "primaryKey": false,
435
+ "notNull": false
436
+ },
437
+ "userRole": {
438
+ "name": "userRole",
439
+ "type": "role",
440
+ "typeSchema": "public",
441
+ "primaryKey": false,
442
+ "notNull": false,
443
+ "default": "'user'"
444
+ }
445
+ },
446
+ "indexes": {
447
+ "usernameUniqueIndex": {
448
+ "name": "usernameUniqueIndex",
449
+ "columns": [
450
+ {
451
+ "expression": "lower(\"username\")",
452
+ "asc": true,
453
+ "isExpression": true,
454
+ "nulls": "last"
455
+ }
456
+ ],
457
+ "isUnique": true,
458
+ "concurrently": false,
459
+ "method": "btree",
460
+ "with": {}
461
+ },
462
+ "emailVerifiedUniqueIndex": {
463
+ "name": "emailVerifiedUniqueIndex",
464
+ "columns": [
465
+ {
466
+ "expression": "lower(\"emailVerified\")",
467
+ "asc": true,
468
+ "isExpression": true,
469
+ "nulls": "last"
470
+ }
471
+ ],
472
+ "isUnique": true,
473
+ "concurrently": false,
474
+ "method": "btree",
475
+ "with": {}
476
+ }
477
+ },
478
+ "foreignKeys": {},
479
+ "compositePrimaryKeys": {},
480
+ "uniqueConstraints": {},
481
+ "policies": {},
482
+ "checkConstraints": {},
483
+ "isRLSEnabled": false
484
+ }
485
+ },
486
+ "enums": {
487
+ "public.accountAction": {
488
+ "name": "accountAction",
489
+ "schema": "public",
490
+ "values": [
491
+ "cooldown",
492
+ "confirmEmail",
493
+ "signIn",
494
+ "resetPassword"
495
+ ]
496
+ },
497
+ "public.role": {
498
+ "name": "role",
499
+ "schema": "public",
500
+ "values": [
501
+ "admin",
502
+ "user"
503
+ ]
504
+ },
505
+ "public.trackedUserColumnName": {
506
+ "name": "trackedUserColumnName",
507
+ "schema": "public",
508
+ "values": [
509
+ "username",
510
+ "emailOffered",
511
+ "emailVerified",
512
+ "password",
513
+ "userRole"
514
+ ]
515
+ },
516
+ "public.twoFactorMethod": {
517
+ "name": "twoFactorMethod",
518
+ "schema": "public",
519
+ "values": [
520
+ "email",
521
+ "phone"
522
+ ]
523
+ }
524
+ },
525
+ "schemas": {},
526
+ "sequences": {},
527
+ "roles": {},
528
+ "policies": {},
529
+ "views": {},
530
+ "_meta": {
531
+ "columns": {},
532
+ "schemas": {},
533
+ "tables": {}
534
+ }
535
+ }