Fix minimum age 12 and ensure assignment catalog seeds on startup.
Persian age validation messages, clearer homework entry points, and seed assignment definitions so «تکالیف من» is not empty after deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ npm run dev
|
||||
API default: `http://localhost:3001`
|
||||
PWA (CORS): `http://localhost:5173`
|
||||
|
||||
`prisma:seed` upserts the 11 course sessions. Server startup also upserts them as a safety net.
|
||||
`prisma:seed` upserts the 11 course sessions and 9 assignment definitions. Server startup also upserts both as a safety net.
|
||||
|
||||
## Scripts
|
||||
|
||||
@@ -49,7 +49,7 @@ PWA (CORS): `http://localhost:5173`
|
||||
| `npm run prisma:validate` | Validate schema |
|
||||
| `npm run prisma:migrate:dev` | Dev migrations |
|
||||
| `npm run prisma:migrate:deploy` | Apply migrations (prod) |
|
||||
| `npm run prisma:seed` | Upsert 11 `course_sessions` |
|
||||
| `npm run prisma:seed` | Upsert 11 `course_sessions` + 9 assignment definitions |
|
||||
|
||||
## Project Structure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user