fix: improve plugins functionality with server management

This commit is contained in:
2026-04-29 20:33:54 +02:00
parent b8f6d58d99
commit fa2cca6fa4
82 changed files with 1708 additions and 303 deletions

View File

@@ -12,6 +12,9 @@ export class MessageEntity {
@Column('text')
roomId!: string;
@Column('text', { nullable: true })
ownerUserId!: string | null;
@Column('text', { nullable: true })
channelId!: string | null;

View File

@@ -6,6 +6,9 @@ import {
@Entity('plugin_data')
export class PluginDataEntity {
@PrimaryColumn('text')
ownerUserId!: string;
@PrimaryColumn('text')
pluginId!: string;

View File

@@ -0,0 +1,19 @@
import {
Column,
Entity,
Index,
PrimaryColumn
} from 'typeorm';
@Entity('room_owners')
export class RoomOwnerEntity {
@PrimaryColumn('text')
roomId!: string;
@PrimaryColumn('text')
@Index()
userId!: string;
@Column('integer')
savedAt!: number;
}

View File

@@ -1,6 +1,7 @@
export { MessageEntity } from './MessageEntity';
export { UserEntity } from './UserEntity';
export { RoomEntity } from './RoomEntity';
export { RoomOwnerEntity } from './RoomOwnerEntity';
export { RoomChannelEntity } from './RoomChannelEntity';
export { RoomMemberEntity } from './RoomMemberEntity';
export { RoomRoleEntity } from './RoomRoleEntity';