echadospalante-domain
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.
39 lines (30 loc) • 737 B
text/typescript
// venture-category.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
ManyToMany,
} from "typeorm";
import { UserData } from "./user.data";
import { VentureData } from "./venture.data";
({ name: "venture_category" })
export class VentureCategoryData {
("uuid")
id: string;
()
name: string;
({ unique: true })
slug: string;
()
description: string;
()
createdAt: Date;
()
updatedAt: Date;
(() => UserData, (user) => user.preferences)
users?: UserData[];
(() => VentureData, (venture) => venture.categories)
ventures?: VentureData[];
}