{
  "name": "@app/database",
  "version": "0.1.0",
  "private": true,
  "type": "module",
  "description": "Drizzle-schema, migrationer, seed och databasklient (separat databas, spec §52)",
  "exports": {
    ".": "./src/index.ts",
    "./schema": "./src/schema/index.ts",
    "./seed": "./src/seed/index.ts"
  },
  "scripts": {
    "typecheck": "tsc --noEmit",
    "test": "pnpm run db:test-setup && vitest run --passWithNoTests",
    "db:generate": "drizzle-kit generate",
    "db:migrate": "tsx src/migrate.ts",
    "db:seed": "tsx src/seed/run.ts",
    "db:test-migrate": "tsx src/migrate.ts --test",
    "db:test-seed": "tsx src/seed/run.ts --test",
    "db:test-setup": "tsx src/migrate.ts --test && tsx src/seed/run.ts --test"
  },
  "dependencies": {
    "@app/nutrition-engine": "workspace:*",
    "@app/shared-types": "workspace:*",
    "dotenv": "^16.4.0",
    "drizzle-orm": "^0.45.0",
    "pg": "^8.13.0"
  },
  "devDependencies": {
    "@types/pg": "^8.11.0",
    "drizzle-kit": "^0.31.0"
  }
}
