🗃️ DriveFile: add editing_session_key column (#525)
This commit is contained in:
committed by
ericlinagora
parent
e5c12a03bd
commit
f1dcb15aba
@@ -35,6 +35,10 @@ export type DriveScope = "personal" | "shared";
|
||||
globalIndexes: [
|
||||
["company_id", "parent_id"],
|
||||
["company_id", "is_in_trash"],
|
||||
|
||||
// Needs to be globally unique (no `company_id`) because it's the only key that OnlyOffice
|
||||
// will return to us to identify the document being edited. Convenient for other plugins too.
|
||||
["editing_session_key"],
|
||||
],
|
||||
primaryKey: [["company_id"], "id"],
|
||||
type: TYPE,
|
||||
@@ -87,6 +91,15 @@ export class DriveFile {
|
||||
@Column("access_info", "encoded_json")
|
||||
access_info: AccessInformation;
|
||||
|
||||
/**
|
||||
* If this field is non-null, then an editing session is in progress (probably in OnlyOffice).
|
||||
* Should be in the format `appid-timestamp-hexuuid` where `appid` and `timestamp` have no `-`
|
||||
* characters.
|
||||
*/
|
||||
@Type(() => String)
|
||||
@Column("editing_session_key", "string")
|
||||
editing_session_key: string;
|
||||
|
||||
@Type(() => String)
|
||||
@Column("content_keywords", "string")
|
||||
content_keywords: string;
|
||||
|
||||
Reference in New Issue
Block a user