feat(ST-509): add optional description column (max 2000 chars) to Todo

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-26 19:59:52 +02:00
parent af76453dc1
commit 318cb1e1f9
3 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 326 KiB

Before After
Before After

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "todos" ADD COLUMN "description" VARCHAR(2000);

View file

@ -226,6 +226,7 @@ model Todo {
product Product? @relation(fields: [product_id], references: [id], onDelete: SetNull) product Product? @relation(fields: [product_id], references: [id], onDelete: SetNull)
product_id String? product_id String?
title String title String
description String? @db.VarChar(2000)
done Boolean @default(false) done Boolean @default(false)
archived Boolean @default(false) archived Boolean @default(false)
created_at DateTime @default(now()) created_at DateTime @default(now())