- Added drizzle configuration for PostgreSQL connection. - Created user schema for the 'demo' table in drizzle. - Implemented database connection and user retrieval in drizzle integration. - Added migration SQL for creating the 'demo' table. - Updated user hooks to use server functions for login and signup. - Refactored user-related functions to use drizzle ORM for database interactions. - Updated routes to utilize new user management functions.
11 lines
303 B
TypeScript
11 lines
303 B
TypeScript
import { defineConfig } from 'drizzle-kit';
|
|
console.log(process.env.DATABASE_URL)
|
|
export default defineConfig({
|
|
schema: './src/integrations/drizzle/db/schema.ts',
|
|
out: './src/integrations/supabase/migrations',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL!
|
|
},
|
|
});
|