@wearesage/schema
Version:
A flexible schema definition and validation system for TypeScript with multi-database support
23 lines (18 loc) • 368 B
text/typescript
import "reflect-metadata";
import { Entity, Id, Property, ManyToMany } from "../..";
import { Task } from "./Task";
()
export class Label {
()
id: string;
({ required: true })
name: string;
()
color: string;
({
target: () => Task,
inverse: "labels",
name: "APPLIED_TO",
})
tasks: Task[] = [];
}