import { Transform } from 'class-transformer' import { BaseModel } from '../base.model' import { parseDate } from '../../utils/date' import { ChallengeDayPatient } from '.' export class ChallengeDay extends BaseModel { id: string challenge_week_id: string day: number title: string description: string goal: string tip: string icon: string @Transform(value => parseDate(value), { toClassOnly: true }) created_at: Date @Transform(value => parseDate(value), { toClassOnly: true }) updated_at: Date challenge_day_patients?: Array }