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

@Entity('config_setting')
export class ConfigSetting {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ unique: true })
  setting_key: string;

  @Column()
  setting_value: string;

  @Column({ type: 'text', nullable: true })
  description: string;

  @CreateDateColumn()
  created_at: Date;

  @UpdateDateColumn()
  updated_at: Date;
}
