import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  CreateDateColumn,
} from 'typeorm';

@Entity('api_response_logs')
export class ApiResponseLog {
  @PrimaryGeneratedColumn({ type: 'bigint', unsigned: true })
  id: number;

  @Column({ type: 'varchar', length: 100, nullable: true })
  source: string;

  @Column({ type: 'json' })
  message: any;

  @CreateDateColumn({ name: 'created_at' })
  created_at: Date;
}
