mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
23 lines
436 B
TypeScript
23 lines
436 B
TypeScript
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;
|
|
}
|