Version 0.7.0
This commit is contained in:
parent
603d969972
commit
8d3b0fa7d3
44 changed files with 611 additions and 41 deletions
|
|
@ -0,0 +1,2 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "Attachment" ADD COLUMN "iv" TEXT;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "Channel" ADD COLUMN "category" TEXT,
|
||||
ADD COLUMN "order" INTEGER;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Role" ADD COLUMN "color" TEXT,
|
||||
ADD COLUMN "order" INTEGER;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "Role" ADD COLUMN "showInMembers" BOOLEAN;
|
||||
9
prisma/migrations/20260120183150_order/migration.sql
Normal file
9
prisma/migrations/20260120183150_order/migration.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- AlterTable
|
||||
CREATE SEQUENCE channel_order_seq;
|
||||
ALTER TABLE "Channel" ALTER COLUMN "order" SET DEFAULT nextval('channel_order_seq');
|
||||
ALTER SEQUENCE channel_order_seq OWNED BY "Channel"."order";
|
||||
|
||||
-- AlterTable
|
||||
CREATE SEQUENCE role_order_seq;
|
||||
ALTER TABLE "Role" ALTER COLUMN "order" SET DEFAULT nextval('role_order_seq');
|
||||
ALTER SEQUENCE role_order_seq OWNED BY "Role"."order";
|
||||
|
|
@ -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