File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ model Avatar {
4848}
4949
5050model Picture {
51- hash String @id
52- data Bytes
53- key String // password
51+ hash String @id
52+ data Bytes
53+ key String // password
5454}
5555
5656model InterestSubject {
@@ -67,7 +67,7 @@ model Interest {
6767 userId Int
6868 user User @relation (fields : [userId ] , references : [id ] )
6969 subjectId Int
70- subject InterestSubject @relation (fields : [subjectId ] , references : [id ] )
70+ subject InterestSubject @relation (fields : [subjectId ] , references : [id ] , onDelete : Cascade )
7171
7272 @@unique ([userId , subjectId ] )
7373}
@@ -137,11 +137,11 @@ model SharedRoom {
137137
138138model Message {
139139 id Int @id @default (autoincrement () )
140- creator Int // refers to UserId
140+ creator Int // refers to UserId
141141 createdAt DateTime @default (now () ) // @readonly
142142 edited Boolean @default (false )
143143 content String
144- isPicture Boolean // iff the message is a picture. if true, then content is a url of picture.
144+ isPicture Boolean // iff the message is a picture. if true, then content is a url of picture.
145145 read Boolean @default (false )
146146 relation Relationship ? @relation (fields : [relationId ] , references : [id ] , onDelete : Cascade )
147147 relationId Int ?
You can’t perform that action at this time.
0 commit comments