{
  "name": "@openwork-ee/den-db",
  "private": true,
  "type": "module",
  "main": "./dist/index.js",
  "types": "./src/index.ts",
  "source": "./src/index.ts",
  "exports": {
    ".": {
      "types": "./src/index.ts",
      "development": "./src/index.ts",
      "default": "./dist/index.js"
    },
    "./schema": {
      "types": "./src/schema.ts",
      "development": "./src/schema.ts",
      "default": "./dist/schema.js"
    },
    "./schema/auth": {
      "types": "./src/schema/auth.ts",
      "development": "./src/schema/auth.ts",
      "default": "./dist/schema/auth.js"
    },
    "./schema/desktop-policies": {
      "types": "./src/schema/desktop-policies.ts",
      "development": "./src/schema/desktop-policies.ts",
      "default": "./dist/schema/desktop-policies.js"
    },
    "./schema/inference": {
      "types": "./src/schema/inference.ts",
      "development": "./src/schema/inference.ts",
      "default": "./dist/schema/inference.js"
    },
    "./schema/org": {
      "types": "./src/schema/org.ts",
      "development": "./src/schema/org.ts",
      "default": "./dist/schema/org.js"
    },
    "./schema/teams": {
      "types": "./src/schema/teams.ts",
      "development": "./src/schema/teams.ts",
      "default": "./dist/schema/teams.js"
    },
    "./schema/telegram": {
      "types": "./src/schema/telegram.ts",
      "development": "./src/schema/telegram.ts",
      "default": "./dist/schema/telegram.js"
    },
    "./schema/subscriptions": {
      "types": "./src/schema/subscriptions.ts",
      "development": "./src/schema/subscriptions.ts",
      "default": "./dist/schema/subscriptions.js"
    },
    "./schema/workers": {
      "types": "./src/schema/workers.ts",
      "development": "./src/schema/workers.ts",
      "default": "./dist/schema/workers.js"
    },
    "./schema/system": {
      "types": "./src/schema/system.ts",
      "development": "./src/schema/system.ts",
      "default": "./dist/schema/system.js"
    },
    "./schema/telemetry": {
      "types": "./src/schema/telemetry.ts",
      "development": "./src/schema/telemetry.ts",
      "default": "./dist/schema/telemetry.js"
    },
    "./drizzle": {
      "types": "./src/drizzle.ts",
      "development": "./src/drizzle.ts",
      "default": "./dist/drizzle.js"
    }
  },
  "scripts": {
    "build": "pnpm run build:utils && tsup && tsup --config tsup.scripts.config.ts && node scripts/build-assets.mjs",
    "build:utils": "pnpm --dir ../utils run build",
    "db:baseline": "node --import tsx scripts/baseline-migrations.ts",
    "db:bootstrap": "pnpm run build && node dist/scripts/bootstrap.js",
    "db:generate": "pnpm run build && node --import tsx ./node_modules/drizzle-kit/bin.cjs generate --config drizzle.config.ts",
    "db:migrate": "pnpm run build && node --import tsx ./node_modules/drizzle-kit/bin.cjs migrate --config drizzle.config.ts && node --import tsx scripts/ensure-fulltext-indexes.ts && node --import tsx scripts/ensure-schema-repairs.ts",
    "db:push": "pnpm run build && node --import tsx ./node_modules/drizzle-kit/bin.cjs push --config drizzle.config.ts && node --import tsx scripts/ensure-fulltext-indexes.ts && node --import tsx scripts/ensure-schema-repairs.ts",
    "test": "tsx --test test/*.test.ts",
    "db:verify-memory": "pnpm run build && node --import tsx scripts/verify-memory-schema.ts",
    "benchmark:admin-scale:mysql": "node --import tsx scripts/admin-scale-benchmark.ts"
  },
  "dependencies": {
    "@openwork/types": "workspace:*",
    "@openwork-ee/utils": "workspace:*",
    "@planetscale/database": "^1.19.0",
    "drizzle-orm": "^0.45.1",
    "mysql2": "^3.11.3"
  },
  "devDependencies": {
    "@types/node": "^20.11.30",
    "drizzle-kit": "^0.31.9",
    "tsup": "^8.5.0",
    "tsx": "^4.23.1",
    "typescript": "^5.5.4"
  }
}
