@appxdigital/appx-core-cli 1.0.4 → 1.0.5
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.
- package/package.json +1 -1
- package/wizard.js +13 -2
package/package.json
CHANGED
package/wizard.js
CHANGED
|
@@ -438,7 +438,7 @@ model User {
|
|
|
438
438
|
email String @unique
|
|
439
439
|
name String?
|
|
440
440
|
password String? /// @Role(none)
|
|
441
|
-
role Role @default(
|
|
441
|
+
role Role @default(GUEST)
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
model Session {
|
|
@@ -449,9 +449,20 @@ model Session {
|
|
|
449
449
|
userId Int?
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
+
model UserRefreshToken {
|
|
453
|
+
id String @id @default(cuid())
|
|
454
|
+
token String @unique
|
|
455
|
+
userId Int
|
|
456
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
457
|
+
expiresAt DateTime
|
|
458
|
+
createdAt DateTime @default(now())
|
|
459
|
+
revokedAt DateTime?
|
|
460
|
+
|
|
461
|
+
@@index([userId])
|
|
462
|
+
}
|
|
463
|
+
|
|
452
464
|
enum Role {
|
|
453
465
|
ADMIN
|
|
454
|
-
CLIENT
|
|
455
466
|
GUEST
|
|
456
467
|
}
|
|
457
468
|
`;
|