This commit is contained in:
2025-04-28 11:04:22 +02:00
parent ce9b765b81
commit 9875b4f392
4 changed files with 58 additions and 0 deletions

View File

@@ -10,6 +10,14 @@ import { CreateDonation } from './CreateDonation';
*/
export class CreateDistanceDonation extends CreateDonation {
/**
* The donation's associated donor's id.
* This is important to link donations to donors.
*/
@IsInt()
@IsPositive()
donor: number;
/**
* The donation's associated runner's id.
* This is important to link the runner's distance ran to the donation.