mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
Project table
This commit is contained in:
@@ -5,3 +5,12 @@ export const User = pgTable("User", {
|
||||
name: varchar({ length: 256 }).notNull(),
|
||||
username: varchar({ length: 32 }).notNull().unique(),
|
||||
});
|
||||
|
||||
export const Project = pgTable("Project", {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity(),
|
||||
blob: varchar({ length: 4 }).notNull(),
|
||||
name: varchar({ length: 256 }).notNull(),
|
||||
ownerId: integer()
|
||||
.notNull()
|
||||
.references(() => User.id),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user