echadospalante-core
Version:
This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.
35 lines (28 loc) • 723 B
text/typescript
// event-donation.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
ManyToOne,
JoinColumn,
} from "typeorm";
import { VentureEventData } from "./venture-event.data";
import { UserData } from "./user.data";
export class EventDonationData {
id: string;
currency: string;
amount: number;
createdAt: Date;
donor: UserData;
event: VentureEventData;
}