1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-25 06:56:40 +07:00

added wtf command

This commit is contained in:
Fedor Katurov 2021-05-28 16:26:36 +07:00
parent 0839684fff
commit b28c34878b
5 changed files with 99 additions and 0 deletions

View file

@ -0,0 +1,23 @@
import {
Column,
CreateDateColumn,
Entity,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from "typeorm";
@Entity()
export class Log {
@PrimaryGeneratedColumn()
id!: number;
@Column()
level!: string;
@Column({ type: "text" })
message!: string;
@Column("simple-json", { default: {}, nullable: false })
body!: Record<any, any>;
@CreateDateColumn()
createdAt!: Date;
@UpdateDateColumn()
updatedAt!: Date;
}