- 更新 User 模型:添加 name、isFirstLogin、role 枚举、team 关联 - 创建 Department 模型:支持层级结构和部门负责人 - 创建 Team 模型:小组管理和组长关联 - 更新 Product 模型:添加 createdBy、collaborators、visibility、软删除 - 更新 ProductSKU 模型:添加 ownerId、transferHistory、软删除 - 创建 Feedback 模型:问题反馈系统 - 创建 ActivityLog 模型:操作日志记录 - 添加 6 种角色枚举:SUPER_ADMIN、ADMIN、DEPARTMENT_MANAGER、TEAM_LEADER、DESIGNER、VIEWER - 添加用户状态枚举:ACTIVE、INACTIVE、SUSPENDED - 运行数据库迁移并生成 Prisma Client - 更新文档:TODO.md、PHASE1_COMPLETE.md
94 lines
2.5 KiB
JSON
94 lines
2.5 KiB
JSON
{
|
|
"name": "furniture-3d-system",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "prisma generate && next build",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:push": "prisma db push",
|
|
"prisma:studio": "prisma studio",
|
|
"type-check": "tsc --noEmit",
|
|
"demo:create": "node scripts/create-demo-data.js",
|
|
"demo:setup": "npm run prisma:push && npm run demo:create",
|
|
"demo:update": "node scripts/update-demo-models.js",
|
|
"demo:refresh": "npm run prisma:push && npm run demo:update"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.948.0",
|
|
"@hookform/resolvers": "^3.9.1",
|
|
"@prisma/client": "^6.1.0",
|
|
"@react-three/drei": "^9.117.3",
|
|
"@react-three/fiber": "^8.17.10",
|
|
"autoprefixer": "^10.4.22",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"dockerode": "^4.0.9",
|
|
"gsap": "^3.12.5",
|
|
"lucide-react": "^0.559.0",
|
|
"nanoid": "^5.1.6",
|
|
"next": "16.0.8",
|
|
"postcss": "^8.5.6",
|
|
"react": "19.2.1",
|
|
"react-dom": "19.2.1",
|
|
"react-hook-form": "^7.54.2",
|
|
"ssh2": "^1.17.0",
|
|
"tailwind-merge": "^3.4.0",
|
|
"three": "^0.171.0",
|
|
"zod": "^3.24.1",
|
|
"zustand": "^5.0.2"
|
|
},
|
|
"overrides": {
|
|
"@react-three/drei": {
|
|
"react": "19.2.1",
|
|
"react-dom": "19.2.1"
|
|
},
|
|
"@react-three/fiber": {
|
|
"react": "19.2.1",
|
|
"react-dom": "19.2.1"
|
|
},
|
|
"@react-spring/three": {
|
|
"react": "19.2.1",
|
|
"react-dom": "19.2.1"
|
|
},
|
|
"@react-spring/animated": {
|
|
"react": "19.2.1"
|
|
},
|
|
"@react-spring/core": {
|
|
"react": "19.2.1"
|
|
},
|
|
"@react-spring/shared": {
|
|
"react": "19.2.1"
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/dockerode": "^3.3.47",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^20",
|
|
"@types/react": "^18.3.27",
|
|
"@types/react-dom": "^18.3.7",
|
|
"@types/ssh2": "^1.15.5",
|
|
"@types/three": "^0.171.0",
|
|
"babel-plugin-react-compiler": "1.0.0",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.0.8",
|
|
"fast-check": "^4.4.0",
|
|
"jest": "^30.2.0",
|
|
"jest-environment-jsdom": "^30.2.0",
|
|
"prisma": "^6.1.0",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "^5"
|
|
}
|
|
}
|