parent
282a166284
commit
0bda898e8b
@ -0,0 +1,34 @@ |
||||
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm'; |
||||
|
||||
@Entity() |
||||
export class ErrorLog { |
||||
@PrimaryGeneratedColumn() |
||||
id!: number; |
||||
|
||||
@CreateDateColumn({ type: 'timestamp' }) |
||||
createdAt!: Date; |
||||
|
||||
@Index() |
||||
@Column({ length: 16, nullable: true }) |
||||
method?: string; |
||||
|
||||
@Index() |
||||
@Column({ length: 255, nullable: true }) |
||||
path?: string; |
||||
|
||||
@Column({ type: 'int', nullable: true }) |
||||
statusCode?: number; |
||||
|
||||
@Column({ type: 'text', nullable: true }) |
||||
message?: string; |
||||
|
||||
@Column({ type: 'text', nullable: true }) |
||||
stack?: string; |
||||
|
||||
@Index() |
||||
@Column({ type: 'int', nullable: true }) |
||||
userId?: number; |
||||
|
||||
@Column({ length: 64, nullable: true }) |
||||
ip?: string; |
||||
} |
Loading…
Reference in new issue