/
php-drive-file-version-entity.ts
58 lines (45 loc) · 1.19 KB
/
php-drive-file-version-entity.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { Type } from "class-transformer";
import {
Column,
Entity,
} from "../../../../core/platform/services/database/services/orm/decorators";
export const TYPE = "drive_file_version";
@Entity(TYPE, {
primaryKey: [["file_id"], "id"],
type: TYPE,
})
export class PhpDriveFileVersion {
@Type(() => String)
@Column("id", "timeuuid", { generator: "timeuuid" })
id: string;
@Type(() => String)
@Column("file_id", "timeuuid")
file_id: string;
@Type(() => String)
@Column("creator_id", "string")
creator_id: string;
@Type(() => String)
@Column("realname", "encoded_string")
realname: string;
@Type(() => String)
@Column("key", "string")
key: string;
@Type(() => String)
@Column("mode", "string")
mode: string;
@Type(() => String)
@Column("file_size", "number")
file_size: number;
@Type(() => String)
@Column("date_added", "string")
date_added: string;
@Type(() => String)
@Column("filename", "encoded_string")
filename: string;
@Type(() => String)
@Column("provider", "string")
provider: string;
@Column("data", "encoded_json")
data: unknown;
}
export type PhpDriveFileVersionPrimaryKey = Pick<PhpDriveFileVersion, "file_id" | "id">;