tempest.games 0.2.95 → 0.2.97

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