@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/wizard.js +8 -7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@appxdigital/appx-core-cli",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "npm:publish": "npm publish --access public",
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 Int @id @default(autoincrement())
438
- email String @unique
439
- name String?
440
- password String? /// @Role(none)
441
- role Role @default(GUEST)
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