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:
parent
0839684fff
commit
b28c34878b
5 changed files with 99 additions and 0 deletions
23
src/service/db/postgres/entities/Log.ts
Normal file
23
src/service/db/postgres/entities/Log.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue