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

@Entity({ name: 'tenant_tag_assignments', schema: 'public' })
export class TenantTagAssignment {
  @PrimaryColumn({ name: 'tenant_id', type: 'varchar', length: 100 })
  tenantId!: string;

  @PrimaryColumn({ name: 'tag_id', type: 'uuid' })
  tagId!: string;

  @Column({ name: 'tagged_by', type: 'varchar', length: 100, nullable: true })
  taggedBy!: string | null;

  @CreateDateColumn({ name: 'tagged_at', type: 'timestamptz' })
  taggedAt!: Date;
}
