24 lines
385 B
TypeScript
24 lines
385 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;
|
|
} |