import type { Config } from 'drizzle-kit';

/**
 * MySQL Drizzle config. References the MySQL-specific schema directory.
 *
 * Phase D-Lite scaffolds this file but the MySQL schema at
 * `src/core/db/schema/mysql/` is currently a stub — running this
 * config without porting the schema first will produce an empty migration.
 *
 * See `src/core/db/schema/mysql/README.md` for the port checklist.
 */
export default {
  schema: './src/core/db/schema/mysql/index.ts',
  out: './drizzle/mysql',
  dialect: 'mysql',
  dbCredentials: {
    url: process.env.DATABASE_URL ?? '',
  },
  strict: true,
  verbose: true,
} satisfies Config;
