import { Table, Model, Column, DataType } from 'sequelize-typescript'; @Table({ tableName: 'api_failed_request', timestamps: false }) export default class ApiFailedRequestModel extends Model { @Column({ primaryKey: true, type: DataType.STRING(30) }) RequestId: string; @Column({ allowNull: false, type: DataType.TEXT }) URL: string; @Column({ allowNull: false, type: DataType.STRING(5) }) Method: string; @Column({ allowNull: false, type: DataType.JSON }) RequestHeaders: any; @Column({ allowNull: false, type: DataType.JSON }) RequestBody: any; @Column({ allowNull: false, type: DataType.INTEGER }) ResponseStatus: number | null; @Column({ allowNull: false, type: DataType.JSON }) ResponseBody: any; @Column({ allowNull: false, type: DataType.TEXT }) ErrorMessage: string | null; @Column({ allowNull: false, type: DataType.DATE }) CreatedAt: Date; }