mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
basic db setup with drizzle
This commit is contained in:
7
src/db/schema.ts
Normal file
7
src/db/schema.ts
Normal 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(),
|
||||
});
|
||||
Reference in New Issue
Block a user