24 lines
347 B
TypeScript
24 lines
347 B
TypeScript
import {
|
|
Entity,
|
|
PrimaryColumn,
|
|
Column
|
|
} from 'typeorm';
|
|
|
|
@Entity('server_channels')
|
|
export class ServerChannelEntity {
|
|
@PrimaryColumn('text')
|
|
serverId!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
channelId!: string;
|
|
|
|
@Column('text')
|
|
name!: string;
|
|
|
|
@Column('text')
|
|
type!: 'text' | 'voice';
|
|
|
|
@Column('integer')
|
|
position!: number;
|
|
}
|