chore: Docs, define additional client-side relations
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user