Now able to do stuff with the locations
This commit is contained in:
@@ -238,8 +238,46 @@ export interface File {
|
||||
}
|
||||
|
||||
|
||||
// Updated 2024-06-25
|
||||
export interface Location {
|
||||
// Nothing here yet
|
||||
id: string;
|
||||
// id_random: string;
|
||||
event_location_id: string;
|
||||
event_location_id_random: string;
|
||||
|
||||
external_id?: null|string;
|
||||
code?: null|string;
|
||||
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
name: string;
|
||||
description?: null|string;
|
||||
|
||||
passcode?: null|string;
|
||||
|
||||
hide_event_launcher?: null|boolean;
|
||||
|
||||
alert?: null|boolean;
|
||||
alert_msg?: null|string;
|
||||
|
||||
data_json?: null|string;
|
||||
|
||||
enable: null|boolean;
|
||||
hide?: null|boolean;
|
||||
priority?: null|boolean
|
||||
sort?: null|number;
|
||||
group?: null|string;
|
||||
notes?: null|string;
|
||||
created_on: Date;
|
||||
updated_on?: null|Date;
|
||||
|
||||
// Additional fields for convenience (database views)
|
||||
file_count?: null|number;
|
||||
file_count_all?: null|number;
|
||||
internal_use_count?: null|number;
|
||||
|
||||
event_name?: null|string;
|
||||
}
|
||||
|
||||
|
||||
@@ -441,6 +479,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
exhibits!: Table<Exhibit>;
|
||||
exhibit_tracking!: Table<Exhibit_tracking>;
|
||||
files!: Table<File>;
|
||||
locations!: Table<Location>;
|
||||
sessions!: Table<Session>;
|
||||
presentations!: Table<Presentation>;
|
||||
presenters!: Table<Presenter>;
|
||||
@@ -503,6 +542,17 @@ export class MySubClassedDexie extends Dexie {
|
||||
lu_file_purpose_id, lu_event_file_purpose_name, file_purpose,
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
|
||||
locations: `
|
||||
id, event_location_id, event_location_id_random,
|
||||
external_id, code,
|
||||
event_id, event_id_random,
|
||||
name, description,
|
||||
passcode,
|
||||
hide_event_launcher,
|
||||
alert, alert_msg,
|
||||
data_json,
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
|
||||
presentations: `
|
||||
id, event_presentation_id, event_presentation_id_random,
|
||||
external_id, code,
|
||||
|
||||
Reference in New Issue
Block a user