23 lines
340 B
TypeScript
23 lines
340 B
TypeScript
import {
|
|
Entity,
|
|
PrimaryColumn,
|
|
Column
|
|
} from 'typeorm';
|
|
|
|
@Entity('room_channels')
|
|
export class RoomChannelEntity {
|
|
@PrimaryColumn('text')
|
|
roomId!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
channelId!: string;
|
|
|
|
@Column('text')
|
|
name!: string;
|
|
|
|
@Column('text')
|
|
type!: 'text' | 'voice';
|
|
|
|
@Column('integer')
|
|
position!: number;
|
|
} |