@wearesage/schema
Version:
A flexible schema definition and validation system for TypeScript with multi-database support
46 lines (39 loc) • 678 B
text/typescript
import "reflect-metadata";
import {
Entity,
Id,
Property,
OneToMany,
OneToOne,
ManyToOne,
ManyToMany,
} from "../..";
import { User } from "./User";
import { Post } from "./Post";
export class Reaction {
id: string;
type: string;
createdAt: Date;
user: User;
post: Post;
comment: Comment;
}