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

@Entity('certificates')
export class Certificate {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'certification_name', type: 'varchar', length: 255 })
  certification_name: string;

  @Column({ name: 'certification_provider', type: 'varchar', length: 150, nullable: true })
  certification_provider: string;

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

  @Column({ type: 'tinyint', default: 1, nullable: true })
  status: number;

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