63ef43ec-90ce-4fcf-82b4-abff91b2280a

This commit is contained in:
Z User committed 2026-10-27 01:02:02 +00:00
1 parent 8fa25577c0
commit c71c7e3094
12 files changed
+578 -9

No files matched your search

+12
View File
@@ -177,18 +177,30 @@ model Task {
priority String @default("medium") // low|medium|high
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
comments TaskComment[]
}
model TaskComment {
id String @id @default(cuid())
taskId String
task Task @relation(fields: [taskId], references: [id])
author String
body String
createdAt DateTime @default(now())
}
model TimeEntry {
id String @id @default(cuid())
projectId String
project Project @relation(fields: [projectId], references: [id])
taskId String? // optional link to a specific task
userId String?
description String
minutes Int
billable Boolean @default(true)
rateCentsPerHour Int?
invoiced Boolean @default(false)
locked Boolean @default(false) // locked after PM approval
date DateTime @default(now())
createdAt DateTime @default(now())
}