import { ApiProperty } from '@nestjs/swagger';

export enum DriverProfileAchievementRarity {
  COMMON = 'common',
  RARE = 'rare',
  EPIC = 'epic',
  LEGENDARY = 'legendary',
}

export class DriverProfileAchievementDTO {
  @ApiProperty()
  id!: string;

  @ApiProperty()
  title!: string;

  @ApiProperty()
  description!: string;

  @ApiProperty({ enum: ['trophy', 'medal', 'star', 'crown', 'target', 'zap'] })
  icon!: 'trophy' | 'medal' | 'star' | 'crown' | 'target' | 'zap';

  @ApiProperty({ enum: DriverProfileAchievementRarity })
  rarity!: DriverProfileAchievementRarity;

  @ApiProperty()
  earnedAt!: string;
}