chore: Docs, define additional client-side relations

This commit is contained in:
Tom Moor
2023-10-05 22:32:58 -04:00
parent 773c35ebc3
commit ea4de0dfb5
6 changed files with 67 additions and 18 deletions

View File

@@ -1,14 +1,18 @@
import { computed } from "mobx";
import { isRTL } from "@shared/utils/rtl";
import Document from "./Document";
import User from "./User";
import Model from "./base/Model";
import Relation from "./decorators/Relation";
class Revision extends Model {
id: string;
/** The document ID that the revision is related to */
documentId: string;
/** The document that the revision is related to */
@Relation(() => Document, { onDelete: "cascade" })
document: Document;
/** The document title when the revision was created */
title: string;