mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-21 11:21:06 -05:00
18 lines
381 B
TypeScript
18 lines
381 B
TypeScript
/* eslint-disable import/no-cycle */
|
|
import { PrimaryColumn, Entity, ManyToOne, BaseEntity, Column } from 'typeorm';
|
|
import { Guild } from './Guild';
|
|
|
|
@Entity()
|
|
export class Channel extends BaseEntity {
|
|
@PrimaryColumn({ type: 'text' })
|
|
id: string;
|
|
|
|
@Column({
|
|
default: false,
|
|
})
|
|
listen: boolean;
|
|
|
|
@ManyToOne(() => Guild, (guild) => guild.channels)
|
|
guild: Guild;
|
|
}
|