@wearesage/schema
Version:
A flexible schema definition and validation system for TypeScript with multi-database support
45 lines (37 loc) • 873 B
text/typescript
import "reflect-metadata";
import { Entity, Id, Property, OneToMany, ManyToOne, ManyToMany } from "../..";
import { Organization } from "./Organization";
import { Task } from "./Task";
export class User {
id: string;
name: string;
email: string;
organizations: Organization[] = [];
ownedOrganization: Organization;
tasks: Task[] = [];
createdTasks: Task[] = [];
}