Refactor part 1

This commit is contained in:
Aslan 2026-01-05 16:07:30 +01:00
parent c07d33bcc9
commit e21a807fb3
11 changed files with 71 additions and 146 deletions

View file

@ -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")