Cleaned up the code. A lot less _random!!
This commit is contained in:
@@ -210,10 +210,6 @@ export interface Exhibit_tracking {
|
||||
}
|
||||
|
||||
|
||||
export interface Registration {
|
||||
// Nothing here yet
|
||||
}
|
||||
|
||||
export interface File {
|
||||
id: string;
|
||||
id_random: string;
|
||||
@@ -329,87 +325,6 @@ export interface Location {
|
||||
}
|
||||
|
||||
|
||||
// Updated 2024-06-19
|
||||
export interface Session {
|
||||
id: string;
|
||||
// id_random: string;
|
||||
event_session_id: string;
|
||||
event_session_id_random: string;
|
||||
|
||||
external_id: null|string;
|
||||
code: null|string;
|
||||
|
||||
for_type: string;
|
||||
for_id: string;
|
||||
for_id_random: string;
|
||||
|
||||
type_code?: string;
|
||||
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
event_location_id?: null|string;
|
||||
event_location_id_random?: null|string;
|
||||
|
||||
poc_person_id?: null|string;
|
||||
poc_person_id_random?: null|string;
|
||||
poc_agree?: null|boolean; // General catchall for agreement or consent by the POC
|
||||
poc_kv_json?: null|key_val; // Key value list of the POC by type (examples: 'advocate', 'chair', 'champion', 'moderator', 'organizer')
|
||||
|
||||
name: string;
|
||||
description?: null|string;
|
||||
|
||||
start_datetime?: null|Date;
|
||||
end_datetime?: null|Date;
|
||||
|
||||
passcode?: null|string;
|
||||
|
||||
hide_event_launcher?: null|boolean;
|
||||
|
||||
alert?: null|boolean;
|
||||
alert_msg?: null|string;
|
||||
|
||||
data_json?: null|string;
|
||||
|
||||
ux_mode?: null|string; // 'colloquium', 'lecture', 'panel', 'poster', 'symposium', 'workshop'
|
||||
// colloquium - Specialists present on related topics with questions
|
||||
// symposium - A discussion, less formal
|
||||
|
||||
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; // Only files directly under a session
|
||||
file_count_all?: null|number; // All files under a session
|
||||
internal_use_count?: null|number; // Files marked for internal use
|
||||
event_file_id_li_json?: null|string;
|
||||
|
||||
poc_person_given_name?: null|string;
|
||||
poc_person_family_name?: null|string;
|
||||
poc_person_full_name?: null|string;
|
||||
poc_person_primary_email?: null|string;
|
||||
poc_person_passcode?: null|string;
|
||||
|
||||
|
||||
event_name?: null|string;
|
||||
|
||||
event_location_code?: null|string;
|
||||
event_location_name?: null|string;
|
||||
|
||||
// A key value list of the presentations
|
||||
event_presentation_kv?: null|key_val;
|
||||
event_presentation_li?: null|list;
|
||||
// A key value list of the files
|
||||
event_file_kv?: null|key_val;
|
||||
event_file_li?: null|list;
|
||||
}
|
||||
|
||||
|
||||
// Updated 2024-06-10
|
||||
export interface Presentation {
|
||||
id: string;
|
||||
@@ -553,6 +468,93 @@ export interface Presenter {
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface Registration {
|
||||
// Nothing here yet
|
||||
}
|
||||
|
||||
|
||||
// Updated 2024-06-19
|
||||
export interface Session {
|
||||
id: string;
|
||||
// id_random: string;
|
||||
event_session_id: string;
|
||||
event_session_id_random: string;
|
||||
|
||||
external_id: null|string;
|
||||
code: null|string;
|
||||
|
||||
for_type: string;
|
||||
for_id: string;
|
||||
for_id_random: string;
|
||||
|
||||
type_code?: string;
|
||||
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
event_location_id?: null|string;
|
||||
event_location_id_random?: null|string;
|
||||
|
||||
poc_person_id?: null|string;
|
||||
poc_person_id_random?: null|string;
|
||||
poc_agree?: null|boolean; // General catchall for agreement or consent by the POC
|
||||
poc_kv_json?: null|key_val; // Key value list of the POC by type (examples: 'advocate', 'chair', 'champion', 'moderator', 'organizer')
|
||||
|
||||
name: string;
|
||||
description?: null|string;
|
||||
|
||||
start_datetime?: null|Date;
|
||||
end_datetime?: null|Date;
|
||||
|
||||
passcode?: null|string;
|
||||
|
||||
hide_event_launcher?: null|boolean;
|
||||
|
||||
alert?: null|boolean;
|
||||
alert_msg?: null|string;
|
||||
|
||||
data_json?: null|string;
|
||||
|
||||
ux_mode?: null|string; // 'colloquium', 'lecture', 'panel', 'poster', 'symposium', 'workshop'
|
||||
// colloquium - Specialists present on related topics with questions
|
||||
// symposium - A discussion, less formal
|
||||
|
||||
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; // Only files directly under a session
|
||||
file_count_all?: null|number; // All files under a session
|
||||
internal_use_count?: null|number; // Files marked for internal use
|
||||
event_file_id_li_json?: null|string;
|
||||
|
||||
poc_person_given_name?: null|string;
|
||||
poc_person_family_name?: null|string;
|
||||
poc_person_full_name?: null|string;
|
||||
poc_person_primary_email?: null|string;
|
||||
poc_person_passcode?: null|string;
|
||||
|
||||
|
||||
event_name?: null|string;
|
||||
|
||||
event_location_code?: null|string;
|
||||
event_location_name?: null|string;
|
||||
|
||||
// A key value list of the presentations
|
||||
event_presentation_kv?: null|key_val;
|
||||
event_presentation_li?: null|[any];
|
||||
// A key value list of the files
|
||||
event_file_kv?: null|key_val;
|
||||
event_file_li?: null|[any];
|
||||
}
|
||||
|
||||
|
||||
// Updated 2024-06-10
|
||||
export class MySubClassedDexie extends Dexie {
|
||||
// 'badges' is added by dexie when declaring the stores()
|
||||
@@ -569,7 +571,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
|
||||
constructor() {
|
||||
super('ae_events_db');
|
||||
this.version(2).stores({
|
||||
this.version(3).stores({
|
||||
events: `
|
||||
id, event_id, event_id_random,
|
||||
code,
|
||||
@@ -602,20 +604,6 @@ export class MySubClassedDexie extends Dexie {
|
||||
event_badge_full_name, event_badge_email,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
|
||||
sessions: `
|
||||
id, event_session_id, event_session_id_random,
|
||||
external_id, code,
|
||||
for_type, for_id, for_id_random,
|
||||
type_code,
|
||||
event_id, event_location_id,
|
||||
poc_person_id,
|
||||
event_id_random, event_location_id_random,
|
||||
poc_person_id_random,
|
||||
name, start_datetime, end_datetime,
|
||||
hide_event_launcher,
|
||||
ux_mode,
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
|
||||
files: `
|
||||
id, id_random, event_file_id, event_file_id_random,
|
||||
hosted_file_id, hosted_file_id_random,
|
||||
@@ -659,6 +647,20 @@ export class MySubClassedDexie extends Dexie {
|
||||
agree,
|
||||
hide_event_launcher,
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
|
||||
sessions: `
|
||||
id, event_session_id, event_session_id_random,
|
||||
external_id, code,
|
||||
for_type, for_id, for_id_random,
|
||||
type_code,
|
||||
event_id, event_location_id,
|
||||
poc_person_id,
|
||||
event_id_random, event_location_id_random,
|
||||
poc_person_id_random,
|
||||
name, start_datetime, end_datetime,
|
||||
hide_event_launcher,
|
||||
ux_mode,
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user