refactor
This commit is contained in:
24
core/payments/domain/entities/Prize.ts
Normal file
24
core/payments/domain/entities/Prize.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user