Version 0.7.0

This commit is contained in:
Aslan 2026-01-20 14:08:51 -05:00
parent 603d969972
commit 8d3b0fa7d3
44 changed files with 611 additions and 41 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Attachment" ADD COLUMN "iv" TEXT;

View file

@ -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;

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Role" ADD COLUMN "showInMembers" BOOLEAN;

View 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";

View file

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