Model the whole domain: settings, the reference week, dated exceptions, vacation periods, the public-holiday cache, display messages, the translation cache, the audit log, and the device tables the BYOS server needs (Device, DeviceLog, SyncState). Two modelling decisions are load-bearing and documented in the schema: - Opening times are wall-clock "HH:mm" strings in the shop timezone, never instants. Nothing is stored in UTC, which turns the March and October daylight-saving switches into non-events instead of edge cases. - VacationPeriod is a source of truth, never expanded into ScheduleException rows. The resolver reads it directly at priority rank 2, so a holiday sync can never overwrite a manual exception and editing a period leaves no orphans behind. Device access tokens are stored only as SHA-256 digests, and the image filename column holds a content hash: the firmware skips the redraw when the filename is unchanged, which is where the battery life comes from. Prisma 7 no longer accepts the connection URL in the schema file, so it moves to prisma.config.ts with the pg driver adapter. The dev Postgres service lands here rather than with the rest of the Docker work, because the migration needs a database to run against. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012cSY9pVhZmJUKNN7wf1Myd
62 lines
1.6 KiB
JSON
62 lines
1.6 KiB
JSON
{
|
|
"name": "ita-ito-trmnl-admin",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"license": "UNLICENSED",
|
|
"engines": {
|
|
"node": ">=20.9"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"coverage": "vitest run --coverage",
|
|
"seed": "tsx prisma/seed.ts",
|
|
"screen:preview": "tsx scripts/preview.ts",
|
|
"brand": "tsx scripts/brand.ts",
|
|
"e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/inter": "^5.3.0",
|
|
"@fontsource-variable/source-serif-4": "^5.3.0",
|
|
"@prisma/adapter-pg": "^7.10.0",
|
|
"@prisma/client": "^7.10.0",
|
|
"@resvg/resvg-js": "^2.6.2",
|
|
"date-fns": "^4.4.0",
|
|
"date-fns-tz": "^3.2.0",
|
|
"dotenv": "^18.0.1",
|
|
"next": "^16.3.5",
|
|
"next-auth": "^5.0.0-beta.32",
|
|
"node-cron": "^4.6.0",
|
|
"pg": "^8.23.0",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"satori": "^0.33.4",
|
|
"zod": "^4.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.5",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@types/node": "^26.6.2",
|
|
"@types/node-cron": "^3.0.11",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitest/coverage-v8": "^4.1.11",
|
|
"eslint": "^9.39.5",
|
|
"eslint-config-next": "^16.3.5",
|
|
"msw": "^2.15.0",
|
|
"postcss": "^8.5.28",
|
|
"prisma": "^7.10.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.70.0",
|
|
"vitest": "^4.1.11"
|
|
}
|
|
}
|