feat(licenses): add migration and truncation scripts for database management

- Introduced migration script to handle database schema updates using Drizzle ORM.
- Added truncation script to clear the database schema and reset the state.
- Updated package.json scripts for easier execution of migration and truncation tasks.
- Refactored email and Stripe integration for better modularity and maintainability.
This commit is contained in:
Mauricio Siu
2025-03-19 00:57:14 -06:00
parent 523720606d
commit 473d729416
9 changed files with 91 additions and 179 deletions

View File

@@ -9,9 +9,9 @@
"typecheck": "tsc --noEmit",
"generate": "drizzle-kit generate",
"drop": "drizzle-kit drop",
"migrate": "tsx src/migrate.ts",
"truncate": "tsx src/truncate.ts",
"reset:all": "tsx src/truncate.ts && tsx src/migrate.ts",
"migrate": "tsx migrate.ts",
"truncate": "tsx truncate.ts",
"reset:all": "tsx truncate.ts && tsx migrate.ts",
"studio": "drizzle-kit studio"
},
"dependencies": {