import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('acknowledge_messages')
export class AcknowledgeMessageEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'int', nullable: true }) character_id: number;
    @Column({ type: 'int', nullable: true }) account_id: number;
    @Column({ type: 'longtext' }) content: string;
    @Column({ type: 'varchar', length: 128 }) author: string;
    @Column({ type: 'int', nullable: true }) author_account_id: number;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }) created: Date;
    @Column({ type: 'datetime', nullable: true }) acknowledged: Date | null;
    @Column({ type: 'datetime', nullable: true, default: null }) deleted: Date | null;
}
