@stacksjs/database 0.70.314 → 0.70.316

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/dist/auth-tables.js +9 -1
  2. package/package.json +10 -10
@@ -40,7 +40,15 @@ import process from"node:process";import{randomBytes}from"node:crypto";import{lo
40
40
  token VARCHAR(255) NOT NULL,
41
41
  created_at ${datetime} DEFAULT CURRENT_TIMESTAMP
42
42
  )
43
- `).execute();try{await db.unsafe(indexSqlForDialect("CREATE INDEX IF NOT EXISTS idx_password_resets_email ON password_resets(email)",dbDriver)).execute()}catch{}if(options.verbose)log.info("Creating passkeys table...");await db.unsafe(`
43
+ `).execute();try{await db.unsafe(indexSqlForDialect("CREATE INDEX IF NOT EXISTS idx_password_resets_email ON password_resets(email)",dbDriver)).execute()}catch{}if(options.verbose)log.info("Creating email_verifications table...");await db.unsafe(`
44
+ CREATE TABLE IF NOT EXISTS email_verifications (
45
+ ${pkColumn},
46
+ user_id INTEGER NOT NULL,
47
+ token VARCHAR(255) NOT NULL,
48
+ expires_at ${datetime} NOT NULL,
49
+ created_at ${datetime} DEFAULT CURRENT_TIMESTAMP
50
+ )
51
+ `).execute();try{await db.unsafe(indexSqlForDialect("CREATE INDEX IF NOT EXISTS idx_email_verifications_user_id ON email_verifications(user_id)",dbDriver)).execute()}catch{}if(options.verbose)log.info("Creating passkeys table...");await db.unsafe(`
44
52
  CREATE TABLE IF NOT EXISTS passkeys (
45
53
  id VARCHAR(255) PRIMARY KEY,
46
54
  cred_public_key TEXT NOT NULL,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.314",
5
+ "version": "0.70.316",
6
6
  "description": "The Stacks database integration.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -65,15 +65,15 @@
65
65
  "dynamodb-tooling": "^0.3.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@stacksjs/cli": "0.70.314",
69
- "@stacksjs/config": "0.70.314",
70
- "@stacksjs/logging": "0.70.314",
71
- "@stacksjs/router": "0.70.314",
68
+ "@stacksjs/cli": "0.70.316",
69
+ "@stacksjs/config": "0.70.316",
70
+ "@stacksjs/logging": "0.70.316",
71
+ "@stacksjs/router": "0.70.316",
72
72
  "better-dx": "^0.2.17",
73
- "@stacksjs/path": "0.70.314",
74
- "@stacksjs/query-builder": "0.70.314",
75
- "@stacksjs/storage": "0.70.314",
76
- "@stacksjs/strings": "0.70.314",
77
- "@stacksjs/utils": "0.70.314"
73
+ "@stacksjs/path": "0.70.316",
74
+ "@stacksjs/query-builder": "0.70.316",
75
+ "@stacksjs/storage": "0.70.316",
76
+ "@stacksjs/strings": "0.70.316",
77
+ "@stacksjs/utils": "0.70.316"
78
78
  }
79
79
  }