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

@Entity('companies')
export class CompanyOrmEntity {
  @PrimaryGeneratedColumn('uuid')
  id!: string;

  @Column({ type: 'varchar', length: 100 })
  name!: string;

  @Column({ name: 'owner_user_id', type: 'varchar' })
  ownerUserId!: string;

  @Column({ type: 'varchar', nullable: true })
  contactEmail: string | null = null;

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