Phase 0 data model - add Comment, Priority, collapsed, wipLimit fields

This commit is contained in:
2026-02-16 14:31:56 +02:00
parent 545ac3b637
commit 51eac5354b
5 changed files with 35 additions and 0 deletions

View File

@@ -6,6 +6,12 @@ export const checklistItemSchema = z.object({
checked: z.boolean(),
});
export const commentSchema = z.object({
id: z.string(),
text: z.string(),
createdAt: z.string(),
});
export const attachmentSchema = z.object({
id: z.string(),
name: z.string(),
@@ -28,6 +34,8 @@ export const cardSchema = z.object({
dueDate: z.string().nullable().default(null),
attachments: z.array(attachmentSchema).default([]),
coverColor: z.string().nullable().default(null),
priority: z.enum(["none", "low", "medium", "high", "urgent"]).default("none"),
comments: z.array(commentSchema).default([]),
createdAt: z.string(),
updatedAt: z.string(),
});
@@ -38,6 +46,8 @@ export const columnSchema = z.object({
cardIds: z.array(z.string()).default([]),
width: z.enum(["narrow", "standard", "wide"]).default("standard"),
color: z.string().nullable().default(null),
collapsed: z.boolean().default(false),
wipLimit: z.number().nullable().default(null),
});
export const boardSettingsSchema = z.object({
@@ -74,4 +84,6 @@ export const appSettingsSchema = z.object({
density: z.enum(["compact", "comfortable", "spacious"]).default("comfortable"),
defaultColumnWidth: z.enum(["narrow", "standard", "wide"]).default("standard"),
windowState: windowStateSchema.nullable().default(null),
boardSortOrder: z.enum(["manual", "title", "created", "updated"]).default("updated"),
boardManualOrder: z.array(z.string()).default([]),
});