27 lines
450 B
TypeScript
27 lines
450 B
TypeScript
import {
|
|
Column,
|
|
Entity,
|
|
PrimaryColumn
|
|
} from 'typeorm';
|
|
|
|
@Entity('room_channel_permissions')
|
|
export class RoomChannelPermissionEntity {
|
|
@PrimaryColumn('text')
|
|
roomId!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
channelId!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
targetType!: 'role' | 'user';
|
|
|
|
@PrimaryColumn('text')
|
|
targetId!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
permission!: string;
|
|
|
|
@Column('text')
|
|
value!: 'allow' | 'deny' | 'inherit';
|
|
}
|