Version 0.7.0
This commit is contained in:
parent
603d969972
commit
8d3b0fa7d3
44 changed files with 611 additions and 41 deletions
|
|
@ -28,21 +28,26 @@ model Channel {
|
|||
id String @id @unique @default(uuid())
|
||||
name String
|
||||
description String?
|
||||
category String?
|
||||
order Int? @default(autoincrement())
|
||||
community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
creationDate DateTime @default(now())
|
||||
messages Message[]
|
||||
creationDate DateTime @default(now())
|
||||
}
|
||||
|
||||
model Role {
|
||||
id String @id @unique @default(uuid())
|
||||
name String
|
||||
description String?
|
||||
community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
users User[] @relation(name: "UsersRolesToUsers")
|
||||
permissions String[]
|
||||
creationDate DateTime @default(now())
|
||||
id String @id @unique @default(uuid())
|
||||
name String
|
||||
description String?
|
||||
color String?
|
||||
order Int? @default(autoincrement())
|
||||
showInMembers Boolean?
|
||||
community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
users User[] @relation(name: "UsersRolesToUsers")
|
||||
permissions String[]
|
||||
creationDate DateTime @default(now())
|
||||
}
|
||||
|
||||
model User {
|
||||
|
|
@ -115,6 +120,7 @@ model Reaction {
|
|||
|
||||
model Attachment {
|
||||
id String @id @unique @default(uuid())
|
||||
iv String?
|
||||
filename String
|
||||
mimetype String
|
||||
size BigInt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue