Organisation.statuses and Issue.status

This commit is contained in:
Oliver Bryan
2026-01-10 16:05:02 +00:00
parent 6786827b04
commit fb96486da8
4 changed files with 638 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ export const Organisation = pgTable("Organisation", {
name: varchar({ length: 256 }).notNull(),
description: varchar({ length: 1024 }),
slug: varchar({ length: 64 }).notNull().unique(),
statuses: varchar({ length: 64 }).array().notNull().default(["TO DO", "IN PROGRESS", "REVIEW", "DONE"]),
createdAt: timestamp({ withTimezone: false }).defaultNow(),
updatedAt: timestamp({ withTimezone: false }).defaultNow(),
});
@@ -80,6 +81,7 @@ export const Issue = pgTable(
title: varchar({ length: 256 }).notNull(),
description: varchar({ length: 2048 }).notNull(),
status: varchar({ length: 64 }).notNull().default("TO DO"),
creatorId: integer()
.notNull()