File tree 1 file changed +17
-6
lines changed
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ datasource db {
10
10
}
11
11
12
12
model Task {
13
- id String @id @default (uuid () )
13
+ id String @id @default (uuid () )
14
14
title String
15
15
description String ?
16
- priority Priority ?
17
- isDone Boolean ? @default (false )
18
- createdAt DateTime @default (now () )
19
- updatedAt DateTime @updatedAt
16
+ priority Priority
17
+ category TaskCategory @default (other )
18
+ isDone Boolean ? @default (false )
19
+ createdAt DateTime @default (now () )
20
+ updatedAt DateTime @updatedAt
20
21
userId String
21
- user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
22
+ user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
22
23
23
24
@@index ([userId ] )
24
25
}
@@ -78,3 +79,13 @@ enum Priority {
78
79
MEDIUM
79
80
LOW
80
81
}
82
+
83
+ enum TaskCategory {
84
+ health
85
+ work
86
+ education
87
+ finance
88
+ personal
89
+ home
90
+ other
91
+ }
You can’t perform that action at this time.
0 commit comments