Enhance database management with cleanup and reset scripts
- Added a new database cleanup script to remove all data while preserving the schema, facilitating a clean state before seeding. - Updated package.json to include new commands for database cleaning and resetting. - Modified schema definitions to use an array format for index and constraint definitions, improving clarity and consistency. - Updated product seeding logic to utilize role-based assignments directly from mock data, enhancing flexibility in product-role relationships.
This commit is contained in:
@@ -75,6 +75,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
- **Styling:** Tailwind CSS v4
|
||||
- **Database:** PostgreSQL 16+
|
||||
- **ORM:** Drizzle ORM (TypeScript-first, performant)
|
||||
- **Important:** Use `(table) => [...]` for indexes/constraints, NOT `(table) => ({...})`
|
||||
- **Queue System:** BullMQ (MIT License) - Async job processing
|
||||
- **In-Memory Store:** Redis 7 - Queue storage, sessions, caching
|
||||
- **Auth:** Cidaas (OIDC/OAuth2) - external platform
|
||||
|
||||
Reference in New Issue
Block a user