Basic services; Version 0.2.0
This commit is contained in:
parent
cae53fab61
commit
72d7b22891
11 changed files with 483 additions and 11 deletions
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Made the column `name` on table `Channel` required. This step will fail if there are existing NULL values in that column.
|
||||
- Made the column `name` on table `Role` required. This step will fail if there are existing NULL values in that column.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "Channel" ALTER COLUMN "name" SET NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Role" ALTER COLUMN "name" SET NOT NULL;
|
||||
|
|
@ -23,7 +23,7 @@ model Community {
|
|||
|
||||
model Channel {
|
||||
id String @id @unique @default(uuid())
|
||||
name String?
|
||||
name String
|
||||
community Community? @relation(fields: [communityId], references: [id])
|
||||
communityId String?
|
||||
creationDate DateTime @default(now())
|
||||
|
|
@ -31,7 +31,7 @@ model Channel {
|
|||
|
||||
model Role {
|
||||
id String @id @unique @default(uuid())
|
||||
name String?
|
||||
name String
|
||||
community Community @relation(fields: [communityId], references: [id])
|
||||
communityId String
|
||||
users User[] @relation(name: "UsersRolesToUsers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue