import { defineConfig } from 'drizzle-kit';

if (!process.env.TEST_DATABASE_URL) throw new Error('TEST_DATABASE_URL is not set');

export default defineConfig({
	schema: './src/lib/server/db/schema.ts',
	dialect: 'sqlite',
	dbCredentials: { url: process.env.TEST_DATABASE_URL },
	verbose: true,
	strict: true
});