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

@Entity({ name: 'avatars' })
export class AvatarOrmEntity {
  @PrimaryColumn({ type: 'uuid' })
  id!: string;

  @Index()
  @Column({ type: 'text' })
  driverId!: string;

  @Column({ type: 'text' })
  mediaUrl!: string;

  @CreateDateColumn({ type: 'timestamptz' })
  selectedAt!: Date;

  @Column({ type: 'boolean', default: true })
  isActive!: boolean;
}
