import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; @Entity('hosts') export class Host { @PrimaryGeneratedColumn('uuid') id: string; @Column({ type: 'varchar', length: 200 }) company_name: string; @Column({ type: 'varchar', length: 255, unique: true }) contact_email: string; @Column({ type: 'varchar', length: 64, unique: true }) api_key: string; @Column({ type: 'decimal', precision: 10, scale: 2, default: 6.00 }) wholesale_rate_usd: number; @Column({ type: 'boolean', default: true }) active: boolean; @Column({ type: 'timestamptz', default: () => 'NOW()' }) created_at: Date; @Column({ type: 'timestamptz', default: () => 'NOW()' }) updated_at: Date; }