@appxdigital/appx-core-cli 1.0.4 → 1.0.6
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 +19 -7
package/package.json
CHANGED
package/wizard.js
CHANGED
|
@@ -322,7 +322,7 @@ function setupProjectStructure(projectPath, answers) {
|
|
|
322
322
|
|
|
323
323
|
function ensureAndRunNestCli(projectPath, showOutput = false) {
|
|
324
324
|
const options = showOutput ? { stdio: 'inherit' } : { stdio: 'ignore' };
|
|
325
|
-
const command = 'npx @nestjs/cli new . --skip-install --package-manager npm';
|
|
325
|
+
const command = 'npx --yes @nestjs/cli new . --skip-install --package-manager npm';
|
|
326
326
|
try {
|
|
327
327
|
execSync('npx --no-install @nestjs/cli --version', options);
|
|
328
328
|
} catch {
|
|
@@ -434,11 +434,12 @@ generator nestgraphql {
|
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
model User {
|
|
437
|
-
id
|
|
438
|
-
email
|
|
439
|
-
name
|
|
440
|
-
password
|
|
441
|
-
role
|
|
437
|
+
id Int @id @default(autoincrement())
|
|
438
|
+
email String @unique
|
|
439
|
+
name String?
|
|
440
|
+
password String? /// @Role(none)
|
|
441
|
+
role Role @default(GUEST)
|
|
442
|
+
refreshTokens UserRefreshToken[]
|
|
442
443
|
}
|
|
443
444
|
|
|
444
445
|
model Session {
|
|
@@ -449,9 +450,20 @@ model Session {
|
|
|
449
450
|
userId Int?
|
|
450
451
|
}
|
|
451
452
|
|
|
453
|
+
model UserRefreshToken {
|
|
454
|
+
id String @id @default(cuid())
|
|
455
|
+
token String @unique @db.VarChar(255)
|
|
456
|
+
userId Int
|
|
457
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
458
|
+
expiresAt DateTime
|
|
459
|
+
createdAt DateTime @default(now())
|
|
460
|
+
revokedAt DateTime?
|
|
461
|
+
|
|
462
|
+
@@index([userId])
|
|
463
|
+
}
|
|
464
|
+
|
|
452
465
|
enum Role {
|
|
453
466
|
ADMIN
|
|
454
|
-
CLIENT
|
|
455
467
|
GUEST
|
|
456
468
|
}
|
|
457
469
|
`;
|