File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -49,3 +49,35 @@ model Follow {
49
49
@@unique ([followerId , followingId ] )
50
50
@@map (" follows " )
51
51
}
52
+
53
+ model Like {
54
+ id Int @id @default (autoincrement () )
55
+
56
+ userId Int
57
+ user User @relation (fields : [userId ] , references : [id ] )
58
+
59
+ postId Int
60
+ post Post @relation (fields : [postid ] , references : [id ] )
61
+ }
62
+
63
+ model Tag {
64
+ id Int @id @default (autoincrement () )
65
+
66
+ tagName String @unique
67
+
68
+ posts Post [] @relation (" TagPost " )
69
+ }
70
+
71
+ model Comment {
72
+ id Int @id @default (autoincrement () )
73
+
74
+ text String
75
+ date DateTime @default (now () )
76
+
77
+ postId Int
78
+ post Post @relation (fields : [postId ] , references : [id ] )
79
+
80
+ userId Int
81
+ user User @relation (fields : [userId ] , references : [id ] )
82
+
83
+ }
You can’t perform that action at this time.
0 commit comments