@wearesage/schema
Version:
A flexible schema definition and validation system for TypeScript with multi-database support
62 lines (50 loc) • 1.06 kB
text/typescript
import "reflect-metadata";
import { Entity, Id, Property, OneToMany, ManyToOne, ManyToMany } from "../..";
import { TaskBucket } from "./TaskBucket";
import { User } from "./User";
import { Label } from "./Label";
export class Task {
id: string;
title: string;
description: string;
dueDate: Date;
completed: boolean = false;
createdAt: Date;
bucket: TaskBucket;
assignee: User;
creator: User;
comments: Comment[] = [];
labels: Label[] = [];
}