aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorTom Harley2018-04-23 05:49:44 +0100
committerTom Harley2018-04-23 05:49:44 +0100
commit255e8f4557423c6fd6a54f899cce2271d82da279 (patch)
treef0f97fe6b14812d2b520f8c9c236c32a562d7ce8 /src/db
parentMerge branch 'cjd24/conversion' into trh/gets (diff)
downloadmedicine-255e8f4557423c6fd6a54f899cce2271d82da279.tar.gz
medicine-255e8f4557423c6fd6a54f899cce2271d82da279.zip

Add tabular functionality (except cols)

Diffstat (limited to 'src/db')
-rw-r--r--src/db/model/File.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/model/File.ts b/src/db/model/File.ts
index 5bae182..95031e4 100644
--- a/src/db/model/File.ts
+++ b/src/db/model/File.ts
@@ -75,6 +75,9 @@ export default class File extends Model<File> {
public status!: string;
@Column
+ public originalMimetype!: string;
+
+ @Column
private metadataInternal!: string;
public get name(): string {
@@ -136,6 +139,7 @@ export default class File extends Model<File> {
}
public set mimetype(mime: string) {
+ this.originalMimetype = mime;
this.type = mimes.get(mime) || 'generic';
}
}