Files
gridpilot.gg/core/payments/domain/entities/Prize.ts
2025-12-29 18:34:12 +01:00

30 lines
477 B
TypeScript

/**
* Domain Entity: Prize
*/
export enum PrizeType {
CASH = 'cash',
MERCHANDISE = 'merchandise',
OTHER = 'other',
}
export interface Prize {
id: string;
leagueId: string;
seasonId: string;
position: number;
name: string;
amount: number;
type: PrizeType;
description?: string;
awarded: boolean;
awardedTo?: string;
awardedAt?: Date;
createdAt: Date;
}
export const Prize = {
rehydrate(props: Prize): Prize {
return { ...props };
},
};