mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 12:49:41 +03:00
21 lines
447 B
TypeScript
21 lines
447 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity()
|
|
export class BotSettings {
|
|
constructor(props?: Partial<BotSettings>) {
|
|
Object.assign(this, props);
|
|
}
|
|
|
|
@PrimaryGeneratedColumn('uuid')
|
|
public uuid!: string;
|
|
|
|
@Column({ type: 'text', array: true })
|
|
public messageTimes!: string[];
|
|
|
|
@Column()
|
|
public channel!: string;
|
|
|
|
@Column({ default: false })
|
|
public isActive!: boolean;
|
|
}
|