tempest.games 0.1.46 → 0.2.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,486 @@
1
+ {
2
+ "id": "9c15b977-c2fe-4c1a-8a8b-120fdc2a5293",
3
+ "prevId": "0df7c170-d176-479d-9b49-ed75b0fdaf22",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.userTokens": {
8
+ "name": "userTokens",
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
+ "token": {
25
+ "name": "token",
26
+ "type": "varchar(9)",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "wrongTokenCount": {
31
+ "name": "wrongTokenCount",
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
+ },
44
+ "indexes": {},
45
+ "foreignKeys": {
46
+ "userTokens_userId_users_id_fk": {
47
+ "name": "userTokens_userId_users_id_fk",
48
+ "tableFrom": "userTokens",
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
+ "banishedAt": {
83
+ "name": "banishedAt",
84
+ "type": "timestamp with time zone",
85
+ "primaryKey": false,
86
+ "notNull": true,
87
+ "default": "now()"
88
+ },
89
+ "banishedUntil": {
90
+ "name": "banishedUntil",
91
+ "type": "timestamp with time zone",
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.loginHistory": {
125
+ "name": "loginHistory",
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": false
140
+ },
141
+ "loginTime": {
142
+ "name": "loginTime",
143
+ "type": "timestamp with time zone",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "default": "now()"
147
+ },
148
+ "ipAddress": {
149
+ "name": "ipAddress",
150
+ "type": "varchar(45)",
151
+ "primaryKey": false,
152
+ "notNull": true
153
+ },
154
+ "userAgent": {
155
+ "name": "userAgent",
156
+ "type": "varchar(1024)",
157
+ "primaryKey": false,
158
+ "notNull": false
159
+ },
160
+ "successful": {
161
+ "name": "successful",
162
+ "type": "boolean",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "default": false
166
+ }
167
+ },
168
+ "indexes": {},
169
+ "foreignKeys": {
170
+ "loginHistory_userId_users_id_fk": {
171
+ "name": "loginHistory_userId_users_id_fk",
172
+ "tableFrom": "loginHistory",
173
+ "tableTo": "users",
174
+ "columnsFrom": [
175
+ "userId"
176
+ ],
177
+ "columnsTo": [
178
+ "id"
179
+ ],
180
+ "onDelete": "cascade",
181
+ "onUpdate": "no action"
182
+ }
183
+ },
184
+ "compositePrimaryKeys": {},
185
+ "uniqueConstraints": {},
186
+ "policies": {},
187
+ "checkConstraints": {},
188
+ "isRLSEnabled": false
189
+ },
190
+ "public.passwordResetAttempts": {
191
+ "name": "passwordResetAttempts",
192
+ "schema": "",
193
+ "columns": {
194
+ "id": {
195
+ "name": "id",
196
+ "type": "uuid",
197
+ "primaryKey": true,
198
+ "notNull": true,
199
+ "default": "gen_random_uuid()"
200
+ },
201
+ "userId": {
202
+ "name": "userId",
203
+ "type": "uuid",
204
+ "primaryKey": false,
205
+ "notNull": true
206
+ },
207
+ "requestedIp": {
208
+ "name": "requestedIp",
209
+ "type": "varchar(45)",
210
+ "primaryKey": false,
211
+ "notNull": true
212
+ },
213
+ "requestedAt": {
214
+ "name": "requestedAt",
215
+ "type": "timestamp with time zone",
216
+ "primaryKey": false,
217
+ "notNull": true,
218
+ "default": "now()"
219
+ },
220
+ "succeededIp": {
221
+ "name": "succeededIp",
222
+ "type": "varchar(45)",
223
+ "primaryKey": false,
224
+ "notNull": false
225
+ },
226
+ "succeededAt": {
227
+ "name": "succeededAt",
228
+ "type": "timestamp with time zone",
229
+ "primaryKey": false,
230
+ "notNull": false
231
+ },
232
+ "verificationMethod": {
233
+ "name": "verificationMethod",
234
+ "type": "twoFactorMethod",
235
+ "typeSchema": "public",
236
+ "primaryKey": false,
237
+ "notNull": true
238
+ }
239
+ },
240
+ "indexes": {},
241
+ "foreignKeys": {
242
+ "passwordResetAttempts_userId_users_id_fk": {
243
+ "name": "passwordResetAttempts_userId_users_id_fk",
244
+ "tableFrom": "passwordResetAttempts",
245
+ "tableTo": "users",
246
+ "columnsFrom": [
247
+ "userId"
248
+ ],
249
+ "columnsTo": [
250
+ "id"
251
+ ],
252
+ "onDelete": "cascade",
253
+ "onUpdate": "no action"
254
+ }
255
+ },
256
+ "compositePrimaryKeys": {},
257
+ "uniqueConstraints": {},
258
+ "policies": {},
259
+ "checkConstraints": {},
260
+ "isRLSEnabled": false
261
+ },
262
+ "public.players": {
263
+ "name": "players",
264
+ "schema": "",
265
+ "columns": {
266
+ "userId": {
267
+ "name": "userId",
268
+ "type": "uuid",
269
+ "primaryKey": false,
270
+ "notNull": true
271
+ },
272
+ "gameId": {
273
+ "name": "gameId",
274
+ "type": "uuid",
275
+ "primaryKey": false,
276
+ "notNull": true
277
+ },
278
+ "score": {
279
+ "name": "score",
280
+ "type": "integer",
281
+ "primaryKey": false,
282
+ "notNull": true
283
+ }
284
+ },
285
+ "indexes": {},
286
+ "foreignKeys": {
287
+ "players_userId_users_id_fk": {
288
+ "name": "players_userId_users_id_fk",
289
+ "tableFrom": "players",
290
+ "tableTo": "users",
291
+ "columnsFrom": [
292
+ "userId"
293
+ ],
294
+ "columnsTo": [
295
+ "id"
296
+ ],
297
+ "onDelete": "cascade",
298
+ "onUpdate": "no action"
299
+ },
300
+ "players_gameId_games_id_fk": {
301
+ "name": "players_gameId_games_id_fk",
302
+ "tableFrom": "players",
303
+ "tableTo": "games",
304
+ "columnsFrom": [
305
+ "gameId"
306
+ ],
307
+ "columnsTo": [
308
+ "id"
309
+ ],
310
+ "onDelete": "cascade",
311
+ "onUpdate": "no action"
312
+ }
313
+ },
314
+ "compositePrimaryKeys": {
315
+ "players_userId_gameId_pk": {
316
+ "name": "players_userId_gameId_pk",
317
+ "columns": [
318
+ "userId",
319
+ "gameId"
320
+ ]
321
+ }
322
+ },
323
+ "uniqueConstraints": {},
324
+ "policies": {},
325
+ "checkConstraints": {},
326
+ "isRLSEnabled": false
327
+ },
328
+ "public.users": {
329
+ "name": "users",
330
+ "schema": "",
331
+ "columns": {
332
+ "id": {
333
+ "name": "id",
334
+ "type": "uuid",
335
+ "primaryKey": true,
336
+ "notNull": true,
337
+ "default": "gen_random_uuid()"
338
+ },
339
+ "username": {
340
+ "name": "username",
341
+ "type": "varchar(16)",
342
+ "primaryKey": false,
343
+ "notNull": true
344
+ },
345
+ "emailOffered": {
346
+ "name": "emailOffered",
347
+ "type": "varchar(254)",
348
+ "primaryKey": false,
349
+ "notNull": true
350
+ },
351
+ "emailVerified": {
352
+ "name": "emailVerified",
353
+ "type": "varchar(254)",
354
+ "primaryKey": false,
355
+ "notNull": false
356
+ },
357
+ "password": {
358
+ "name": "password",
359
+ "type": "varchar(254)",
360
+ "primaryKey": false,
361
+ "notNull": true
362
+ },
363
+ "createdAt": {
364
+ "name": "createdAt",
365
+ "type": "timestamp with time zone",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "default": "now()"
369
+ },
370
+ "createdIp": {
371
+ "name": "createdIp",
372
+ "type": "varchar(45)",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "isActive": {
377
+ "name": "isActive",
378
+ "type": "boolean",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "default": false
382
+ },
383
+ "verifiedAt": {
384
+ "name": "verifiedAt",
385
+ "type": "timestamp with time zone",
386
+ "primaryKey": false,
387
+ "notNull": false
388
+ },
389
+ "userRole": {
390
+ "name": "userRole",
391
+ "type": "role",
392
+ "typeSchema": "public",
393
+ "primaryKey": false,
394
+ "notNull": false,
395
+ "default": "'user'"
396
+ }
397
+ },
398
+ "indexes": {
399
+ "usernameUniqueIndex": {
400
+ "name": "usernameUniqueIndex",
401
+ "columns": [
402
+ {
403
+ "expression": "lower(\"username\")",
404
+ "asc": true,
405
+ "isExpression": true,
406
+ "nulls": "last"
407
+ }
408
+ ],
409
+ "isUnique": true,
410
+ "concurrently": false,
411
+ "method": "btree",
412
+ "with": {}
413
+ },
414
+ "emailVerifiedUniqueIndex": {
415
+ "name": "emailVerifiedUniqueIndex",
416
+ "columns": [
417
+ {
418
+ "expression": "lower(\"emailVerified\")",
419
+ "asc": true,
420
+ "isExpression": true,
421
+ "nulls": "last"
422
+ }
423
+ ],
424
+ "isUnique": true,
425
+ "concurrently": false,
426
+ "method": "btree",
427
+ "with": {}
428
+ }
429
+ },
430
+ "foreignKeys": {},
431
+ "compositePrimaryKeys": {},
432
+ "uniqueConstraints": {},
433
+ "policies": {},
434
+ "checkConstraints": {},
435
+ "isRLSEnabled": false
436
+ }
437
+ },
438
+ "enums": {
439
+ "public.accountAction": {
440
+ "name": "accountAction",
441
+ "schema": "public",
442
+ "values": [
443
+ "emailConfirm",
444
+ "passwordReset",
445
+ "emailChange"
446
+ ]
447
+ },
448
+ "public.role": {
449
+ "name": "role",
450
+ "schema": "public",
451
+ "values": [
452
+ "admin",
453
+ "user"
454
+ ]
455
+ },
456
+ "public.trackedUserColumnName": {
457
+ "name": "trackedUserColumnName",
458
+ "schema": "public",
459
+ "values": [
460
+ "username",
461
+ "emailOffered",
462
+ "emailVerified",
463
+ "password",
464
+ "userRole"
465
+ ]
466
+ },
467
+ "public.twoFactorMethod": {
468
+ "name": "twoFactorMethod",
469
+ "schema": "public",
470
+ "values": [
471
+ "email",
472
+ "phone"
473
+ ]
474
+ }
475
+ },
476
+ "schemas": {},
477
+ "sequences": {},
478
+ "roles": {},
479
+ "policies": {},
480
+ "views": {},
481
+ "_meta": {
482
+ "columns": {},
483
+ "schemas": {},
484
+ "tables": {}
485
+ }
486
+ }