- Add pool export and graceful shutdown hook to db/index.ts - Create migrate.ts — programmatic migration runner using drizzle-orm/migrator - Create seed.ts — idempotent seed script with sample users, subscriptions, watchlist items, exposures, alerts, blog posts, properties, and removal requests - Create db.test.ts — unit tests for db, migrate, and seed module exports - Add web/.env.example documenting DATABASE_URL - Add db:generate, db:push, db:migrate, db:seed scripts to web/package.json
2 lines
70 B
Plaintext
2 lines
70 B
Plaintext
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/shieldai"
|