Refactor part 1
This commit is contained in:
parent
c07d33bcc9
commit
e21a807fb3
11 changed files with 71 additions and 146 deletions
|
|
@ -0,0 +1,5 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "Channel" ADD COLUMN "description" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Role" ADD COLUMN "description" TEXT;
|
||||
|
|
@ -24,6 +24,7 @@ model Community {
|
|||
model Channel {
|
||||
id String @id @unique @default(uuid())
|
||||
name String
|
||||
description String?
|
||||
community Community @relation(fields: [communityId], references: [id], onDelete: Cascade)
|
||||
communityId String
|
||||
creationDate DateTime @default(now())
|
||||
|
|
@ -32,6 +33,7 @@ model Channel {
|
|||
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue