mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
Added settings entity
This commit is contained in:
20
backend/libs/database/settings.entity.ts
Normal file
20
backend/libs/database/settings.entity.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user