Create @workspace/schema package with Project and Task table definitions, Drizzle relations, Valibot validation schemas (select/insert/update), and wire as workspace dependency in API and Web apps.
15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
export const PROJECT_STATUSES = ["active", "archived", "completed"] as const;
|
|
|
|
export const TASK_STATUSES = [
|
|
"todo",
|
|
"in_progress",
|
|
"in_review",
|
|
"done",
|
|
] as const;
|
|
|
|
export const PRIORITIES = ["low", "medium", "high", "urgent"] as const;
|
|
|
|
export type ProjectStatus = (typeof PROJECT_STATUSES)[number];
|
|
export type TaskStatus = (typeof TASK_STATUSES)[number];
|
|
export type Priority = (typeof PRIORITIES)[number];
|