diff options
| author | Tom Harley | 2018-04-23 05:49:44 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-23 05:49:44 +0100 |
| commit | 255e8f4557423c6fd6a54f899cce2271d82da279 (patch) | |
| tree | f0f97fe6b14812d2b520f8c9c236c32a562d7ce8 /src/db/model/File.ts | |
| parent | Merge branch 'cjd24/conversion' into trh/gets (diff) | |
| download | medicine-255e8f4557423c6fd6a54f899cce2271d82da279.tar.gz medicine-255e8f4557423c6fd6a54f899cce2271d82da279.zip | |
Add tabular functionality (except cols)
Diffstat (limited to 'src/db/model/File.ts')
| -rw-r--r-- | src/db/model/File.ts | 4 |
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'; } } |
