basic db setup with drizzle

This commit is contained in:
Oliver Bryan
2025-12-07 22:55:02 +00:00
parent 7c43971087
commit 87e03b2a62
14 changed files with 475 additions and 15 deletions

7
src/db/schema.ts Normal file
View File

@@ -0,0 +1,7 @@
import { integer, pgTable, varchar } from "drizzle-orm/pg-core";
export const User = pgTable("User", {
id: integer().primaryKey().generatedAlwaysAsIdentity(),
name: varchar({ length: 256 }).notNull(),
username: varchar({ length: 32 }).notNull().unique(),
});