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) • 766 B
text/typescript
// event-donation.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
ManyToOne,
JoinColumn,
} from "typeorm";
import { UserDetailData } from "./user-detail.data";
import { VentureEventData } from "./venture-event.data";
export class EventDonationData {
id: string;
currency: string;
amount: number;
createdAt: Date;
donor: UserDetailData;
event: VentureEventData;
}