Bug fixes and clean up of Dexie DB related
This commit is contained in:
@@ -4,8 +4,14 @@ import Dexie, { type Table } from 'dexie';
|
||||
// kv = key value list
|
||||
|
||||
export interface Event {
|
||||
id_random: string;
|
||||
id: string;
|
||||
// id_random: string;
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
code: string;
|
||||
|
||||
account_id: string;
|
||||
account_id_random: string;
|
||||
|
||||
conference: boolean;
|
||||
@@ -181,12 +187,15 @@ export interface Exhibit_tracking {
|
||||
export interface File {
|
||||
id: string;
|
||||
id_random: string;
|
||||
event_file_id: string;
|
||||
event_file_id_random: string;
|
||||
|
||||
hosted_file_id: string;
|
||||
hosted_file_id_random: string;
|
||||
hash_sha256: string;
|
||||
|
||||
for_type: string;
|
||||
for_id: string;
|
||||
for_id_random: string;
|
||||
|
||||
event_id_random: string;
|
||||
@@ -278,6 +287,8 @@ export interface Session {
|
||||
poc_person_passcode: null|string;
|
||||
poc_kv_json: null|string;
|
||||
|
||||
event_name: null|string;
|
||||
|
||||
event_location_code: null|string;
|
||||
event_location_name: null|string;
|
||||
}
|
||||
@@ -285,7 +296,7 @@ export interface Session {
|
||||
// Updated 2024-06-10
|
||||
export interface Presentation {
|
||||
id: string;
|
||||
id_random: string;
|
||||
// id_random: string;
|
||||
event_presentation_id: string;
|
||||
event_presentation_id_random: string;
|
||||
|
||||
@@ -313,6 +324,8 @@ export interface Presentation {
|
||||
start_datetime: null|Date;
|
||||
end_datetime: null|Date;
|
||||
|
||||
passcode: null|string;
|
||||
|
||||
hide_event_launcher: null|boolean;
|
||||
|
||||
enable: null|boolean;
|
||||
@@ -418,13 +431,13 @@ export class MySubClassedDexie extends Dexie {
|
||||
super('ae_events_db');
|
||||
this.version(1).stores({
|
||||
events: `
|
||||
id_random, event_id_random,
|
||||
code, account_id_random,
|
||||
id, event_id, event_id_random,
|
||||
code,
|
||||
account_id, account_id_random,
|
||||
conference, type,
|
||||
name,
|
||||
start_datetime, end_datetime,
|
||||
timezone, location_address_json,
|
||||
mod_abstracts_json, mod_badges_json, mod_exhibits_json, mod_pres_mgmt_json,
|
||||
timezone,
|
||||
cfg_json,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
|
||||
@@ -450,7 +463,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
|
||||
sessions: `
|
||||
event_session_id, event_session_id_random,
|
||||
id, event_session_id, event_session_id_random,
|
||||
external_id, code,
|
||||
for_type, for_id, for_id_random,
|
||||
type_code,
|
||||
@@ -463,25 +476,27 @@ export class MySubClassedDexie extends Dexie {
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
|
||||
files: `
|
||||
id_random, event_file_id_random, hosted_file_id_random, hash_sha256,
|
||||
for_type, for_id_random,
|
||||
id, id_random, event_file_id, event_file_id_random,
|
||||
hosted_file_id, hosted_file_id_random,
|
||||
hash_sha256,
|
||||
for_type, for_id, for_id_random,
|
||||
event_id_random, event_session_id_random, event_presentation_id_random, event_presenter_id_random, event_location_id_random,
|
||||
filename, extension,
|
||||
open_in_os,
|
||||
lu_file_purpose_id, lu_event_file_purpose_name, file_purpose,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
|
||||
presentations: `
|
||||
id_random, event_presentation_id_random, external_id, code,
|
||||
for_type, for_id_random, type_code,
|
||||
id, event_presentation_id, event_presentation_id_random,
|
||||
external_id, code,
|
||||
for_type, for_id, for_id_random,
|
||||
type_code,
|
||||
event_id_random, event_session_id_random, event_abstract_id_random,
|
||||
abstract_code, name, description, start_datetime, end_datetime,
|
||||
hide_event_launcher,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on
|
||||
`,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
|
||||
presenters: `
|
||||
event_presenter_id, event_presenter_id_random,
|
||||
id, event_presenter_id, event_presenter_id_random,
|
||||
external_id, code,
|
||||
event_id, event_session_id, event_person_id, event_presentation_id,
|
||||
event_id_random, event_session_id_random, event_person_id_random, event_presentation_id_random,
|
||||
@@ -489,11 +504,9 @@ export class MySubClassedDexie extends Dexie {
|
||||
person_id_random, person_profile_id_random,
|
||||
given_name, family_name,
|
||||
full_name, affiliations, email,
|
||||
agree
|
||||
agree,
|
||||
hide_event_launcher,
|
||||
data_json,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on
|
||||
`,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user