@appxdigital/appx-core-cli 1.0.5 → 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 +8 -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 {
|
|
@@ -451,7 +452,7 @@ model Session {
|
|
|
451
452
|
|
|
452
453
|
model UserRefreshToken {
|
|
453
454
|
id String @id @default(cuid())
|
|
454
|
-
token String @unique
|
|
455
|
+
token String @unique @db.VarChar(255)
|
|
455
456
|
userId Int
|
|
456
457
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
457
458
|
expiresAt DateTime
|