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

@Entity('company_key_people')
export class CompanyKeyPeople {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  company_id: number;

  @Column()
  name: string;

  @Column()
  designation: string;

  @Column({ nullable: true })
  email: string;

  @Column({ nullable: true })
  phone: string;

  @Column({ default: 'full_contact' })
  visibility_level: string;

  @Column()
  created_at: Date;

  @Column()
  updated_at: Date;
}
