Files
fullstack-starter-SQLite/package.json
imbytecat 4c5ceb478b feat: 添加数据库支持与Drizzle ORM配置
- 添加 postgres 依赖版本 3.4.8 以支持数据库连接功能
- 添加 Drizzle ORM 配置文件以指定数据库模式、迁移目录、数据库方言及连接凭证。
- 添加 postgres 依赖以支持数据库连接功能
- 初始化数据库连接,创建使用 Drizzle ORM 的数据库实例并导出连接函数。
- 添加空文件以保留数据库迁移目录的结构
- 导出用户数据模型的定义
- 创建用户表结构,包含唯一ID和姓名字段,并设置ID默认使用uuidv7生成。
- 添加环境变量验证,确保数据库连接URL格式正确。
2026-01-17 01:54:41 +08:00

44 lines
1.3 KiB
JSON

{
"name": "fullstack-starter",
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"compile": "rm -rf out && bun build --compile .output/server/index.mjs --outfile out/server",
"dev": "vite dev",
"fix": "biome check --write",
"serve": "vite preview",
"typecheck": "tsc -b"
},
"dependencies": {
"@tanstack/react-query": "^5.90.18",
"@tanstack/react-query-devtools": "^5.91.2",
"@tanstack/react-router": "^1.150.0",
"@tanstack/react-router-devtools": "^1.150.0",
"@tanstack/react-router-ssr-query": "^1.150.0",
"@tanstack/react-start": "^1.150.0",
"dayjs": "^1.11.19",
"drizzle-orm": "^1.0.0-beta.9-e89174b",
"drizzle-zod": "^1.0.0-beta.9-e89174b",
"postgres": "^3.4.8",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"tailwindcss": "^4.1.18",
"zod": "^4.3.5"
},
"devDependencies": {
"@biomejs/biome": "^2.3.11",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/devtools-vite": "^0.4.1",
"@tanstack/react-devtools": "^0.9.2",
"@types/bun": "^1.3.6",
"@vitejs/plugin-react": "^5.1.2",
"babel-plugin-react-compiler": "^1.0.0",
"drizzle-kit": "^1.0.0-beta.9-e89174b",
"nitro": "npm:nitro-nightly@^3.0.1-20260115-135431-98fc91c5",
"typescript": "^5.9.3",
"vite": "^8.0.0-beta.8",
"vite-tsconfig-paths": "^6.0.4"
}
}