feat: add tags and notes fields to Item model
This commit is contained in:
@@ -17,14 +17,16 @@ model List {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model Item {
|
model Item {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
title String
|
title String
|
||||||
description String?
|
description String?
|
||||||
completed Boolean @default(false)
|
completed Boolean @default(false)
|
||||||
priority String @default("medium") // low, medium, high
|
priority String @default("medium") // low, medium, high
|
||||||
dueDate DateTime?
|
dueDate DateTime?
|
||||||
createdAt DateTime @default(now())
|
tags Json @default("[]")
|
||||||
updatedAt DateTime @updatedAt
|
notes String? @db.Text
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
listId String
|
listId String
|
||||||
list List @relation(fields: [listId], references: [id], onDelete: Cascade)
|
list List @relation(fields: [listId], references: [id], onDelete: Cascade)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user