feat(guild-model): complete guild/channel/dm entities

This commit is contained in:
nav
2026-05-12 09:01:24 +00:00
parent 2e2e217b5f
commit 46f138328e
7 changed files with 64 additions and 7 deletions

View File

@@ -5,12 +5,18 @@ export class Channel {
@PrimaryGeneratedColumn('uuid')
id!: string;
@Column()
@Column({ type: 'char', length: 36 })
guildId!: string;
@Column()
@Column({ type: 'varchar', length: 120 })
name!: string;
@Column({ type: 'varchar', length: 16, default: 'text' })
kind!: 'text' | 'announcement';
@Column({ type: 'boolean', default: false })
isPrivate!: boolean;
@Index()
@Column({ default: 0 })
lastSeq!: number;