File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,14 @@ model User {
2626}
2727
2828model UserAction {
29- id Int @id @default (autoincrement () )
30- userId Int
31- pollId Int
32- type ActionType
33- user User @relation (fields : [userId ] , references : [id ] )
34- poll Poll @relation (fields : [pollId ] , references : [pollId ] ,onDelete : Cascade )
29+ id Int @id @default (autoincrement () )
30+ userId Int
31+ pollId Int
32+ type ActionType
33+ user User @relation (fields : [userId ] , references : [id ] )
34+ poll Poll @relation (fields : [pollId ] , references : [pollId ] , onDelete : Cascade )
35+ createdAt DateTime @default (now () )
36+ updatedAt DateTime @updatedAt
3537}
3638
3739model Poll {
@@ -58,9 +60,9 @@ model Vote {
5860 pollId Int
5961 votingPower Int
6062 weightDistribution Json
61- proof String
62- user User @relation (fields : [userId ] , references : [id ] )
63- poll Poll @relation (fields : [pollId ] , references : [pollId ] ,onDelete : Cascade )
63+ proof String
64+ user User @relation (fields : [userId ] , references : [id ] )
65+ poll Poll @relation (fields : [pollId ] , references : [pollId ] , onDelete : Cascade )
6466}
6567
6668enum ActionType {
You can’t perform that action at this time.
0 commit comments