Making more fields us the LiveQuery. Migrated format bytes function. General clean up.
This commit is contained in:
@@ -204,39 +204,40 @@ export interface File {
|
||||
hosted_file_id_random: string;
|
||||
hash_sha256: string;
|
||||
|
||||
for_type: string;
|
||||
for_id: string;
|
||||
for_id_random: string;
|
||||
for_type?: string;
|
||||
for_id?: string;
|
||||
for_id_random?: string;
|
||||
|
||||
event_id_random: string;
|
||||
event_session_id_random: string;
|
||||
event_presentation_id_random: string;
|
||||
event_presenter_id_random: string;
|
||||
event_location_id_random: string;
|
||||
event_session_id_random?: string;
|
||||
event_presentation_id_random?: string;
|
||||
event_presenter_id_random?: string;
|
||||
event_location_id_random?: string;
|
||||
|
||||
filename: string;
|
||||
extension: string;
|
||||
|
||||
open_in_os: null|string; // null, empty, 'mac', or 'win'
|
||||
open_in_os?: null|string; // null, empty, 'mac', or 'win'
|
||||
|
||||
lu_file_purpose_id: string;
|
||||
lu_event_file_purpose_name: string;
|
||||
file_purpose: string;
|
||||
|
||||
enable: null|boolean;
|
||||
hide: null|boolean;
|
||||
priority: null|boolean
|
||||
sort: null|number;
|
||||
group: null|string;
|
||||
notes: null|string;
|
||||
hide?: null|boolean;
|
||||
priority?: null|boolean
|
||||
sort?: null|number;
|
||||
group?: null|string;
|
||||
notes?: null|string;
|
||||
created_on: Date;
|
||||
updated_on: null|Date;
|
||||
updated_on?: null|Date;
|
||||
|
||||
// Additional fields for convenience (database views)
|
||||
filename_no_ext: string;
|
||||
filename_w_ext: string;
|
||||
hosted_file_content_type: string;
|
||||
hosted_file_size: number; // In bytes
|
||||
file_size: number; // In bytes
|
||||
hosted_file_size?: number; // In bytes
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user