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