Add more services; Version 0.3.3
This commit is contained in:
parent
50348cc494
commit
ddcc591d12
26 changed files with 887 additions and 38 deletions
|
|
@ -24,7 +24,7 @@ model Community {
|
|||
model Channel {
|
||||
id String @id @unique @default(uuid())
|
||||
name String
|
||||
community Community @relation(fields: [communityId], references: [id])
|
||||
community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
creationDate DateTime @default(now())
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@ model Channel {
|
|||
model Role {
|
||||
id String @id @unique @default(uuid())
|
||||
name String
|
||||
community Community @relation(fields: [communityId], references: [id])
|
||||
community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
users User[] @relation(name: "UsersRolesToUsers")
|
||||
permissions String[]
|
||||
|
|
@ -57,7 +57,7 @@ model User {
|
|||
|
||||
model Session {
|
||||
id String @id @unique @default(uuid())
|
||||
owner User @relation(fields: [userId], references: [id])
|
||||
owner User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
userId String
|
||||
token String
|
||||
creationDate DateTime @default(now())
|
||||
|
|
@ -65,9 +65,9 @@ model Session {
|
|||
|
||||
model Invite {
|
||||
id String @id @unique @default(uuid())
|
||||
Community Community @relation(fields: [communityId], references: [id])
|
||||
Community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
User User @relation(fields: [creatorId], references: [id])
|
||||
User User @relation(fields: [creatorId], references: [id], onDelete: Cascade)
|
||||
creatorId String
|
||||
totalInvites Int @default(0)
|
||||
remainingInvites Int @default(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue