mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-15 13:09:43 +03:00
21 lines
423 B
TypeScript
21 lines
423 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;
|
|
}
|