Add database schema and Kysely packages
- Create initial database migration with full auth schema: - users, sessions, passkeys, devices tables - orgs, org_members, org_sites, org_invites tables - email_verifications, password_resets, login_requests tables - Indexes for common lookups and cleanup jobs - Add @reviq/db-schema package with kysely-codegen - Add @reviq/db package with Kysely client Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
26
packages/db-schema/package.json
Normal file
26
packages/db-schema/package.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@reviq/db-schema",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "tsc --build --clean && rm -rf dist/ node_modules/ .eslintcache",
|
||||
"lint": "eslint . --cache",
|
||||
"generate": "kysely-codegen --dialect postgres --url $DATABASE_URL --out-file src/types.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"kysely": "^0.28.9",
|
||||
"pg": "^8.13.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"kysely-codegen": "^0.19.0",
|
||||
"@types/node": "^25.0.3",
|
||||
"@types/pg": "^8.11.10",
|
||||
"@macalinao/tsconfig": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user