mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-22 03:41:05 -05:00
Complete channel add/remove/list functionality
This commit is contained in:
@@ -4,8 +4,8 @@ import { Guild } from './Guild';
|
||||
|
||||
@Entity()
|
||||
export class Channel extends BaseEntity {
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
@PrimaryColumn({ type: 'text' })
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
default: false,
|
||||
|
||||
@@ -4,8 +4,8 @@ import { Channel } from './Channel';
|
||||
|
||||
@Entity()
|
||||
export class Guild extends BaseEntity {
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
@PrimaryColumn({ type: 'text' })
|
||||
id: string;
|
||||
|
||||
@OneToMany(() => Channel, (channel) => channel.guild, { onDelete: 'CASCADE', cascade: true })
|
||||
channels: Channel[];
|
||||
|
||||
Reference in New Issue
Block a user