feat: add Drizzle ORM support and update README with environment setup and migration scripts

This commit is contained in:
2025-12-07 10:20:00 +00:00
parent 546573c694
commit 27d14ac112
8 changed files with 91 additions and 5 deletions

8
Backend/db/schema.ts Normal file
View File

@@ -0,0 +1,8 @@
import { pgTable, timestamp, uuid, varchar } from 'drizzle-orm/pg-core';
export const users = pgTable('users', {
id: uuid('id').defaultRandom().primaryKey(),
email: varchar('email', { length: 255 }).notNull().unique(),
name: varchar('name', { length: 255 }).notNull(),
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
});