import { Entity, PrimaryColumn, Column } from 'typeorm';

@Entity('timezones')
export class Timezone {
  @PrimaryColumn({ name: 'iana_id', length: 64 })
  ianaId!: string;

  @Column({ length: 128 })
  label!: string;

  @Column({ length: 64 })
  region!: string;

  @Column({ name: 'sort_order', type: 'int', default: 0 })
  sortOrder!: number;

  @Column({ name: 'is_active', type: 'tinyint', width: 1, default: 1 })
  isActive!: boolean;
}
