From aec9271e077320f7f67c5bebd7196950157d08e9 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 31 Jul 2024 18:10:59 -0400 Subject: [PATCH] Adding more maps --- app/routers/ae_obj.py | 58 +-- static/ae/obj_type_map__event_device.json | 36 ++ static/ae/obj_type_map__event_exhibit.json | 36 ++ static/ae/obj_type_map__event_location.json | 36 ++ static/ae/obj_type_map__event_person.json | 36 ++ static/ae/obj_type_map__event_presenter.json | 4 +- static/ae/obj_type_map__event_session.json | 4 +- static/ae/obj_type_maps.json | 444 ++++++++++++------- 8 files changed, 443 insertions(+), 211 deletions(-) diff --git a/app/routers/ae_obj.py b/app/routers/ae_obj.py index adc521f..0e0d597 100644 --- a/app/routers/ae_obj.py +++ b/app/routers/ae_obj.py @@ -78,64 +78,8 @@ def convert_obj_type( return mk_resp(data=data, response=commons.response) -# INSERT INTO obj (`id_random`, `external_uid`, `external_id`, `code`, `type_name`, `type_ver_id`, `account_id`, `parent_type`, `parent_id`, `passcode`, `name`, `description`, `status`, `enable`, `enable_on`, `archive_on`, `restricted`, `hide`, `priority`, `sort`, `group`, `data_json`, `cfg_json`, `notes`, `created_on`, `updated_on`) -# SELECT -# `id_random`, -# 'external_person_id' AS `external_uid`, -# `external_id` AS `external_id`, -# NULL AS `code`, -# 'event_person' AS `type_name`, -# `id` AS `type_ver_id`, -# `account_id` AS `account_id`, -# 'event' AS `parent_type`, -# `event_id` AS `parent_id`, -# NULL AS `passcode`, -# NULL AS `name`, -# NULL AS `description`, -# `status` AS `status`, -# `enable` AS `enable`, -# NULL AS `enable_on`, -# NULL AS `archive_on`, -# NULL AS `restricted`, -# `hide` AS `hide`, -# `priority` AS `priority`, -# `sort` AS `sort`, -# `group` AS `group`, -# NULL AS `data_json`, -# NULL AS `cfg_json`, -# `notes` AS `notes`, -# `created_on` AS `created_on`, -# `updated_on` AS `updated_on` -# FROM -# `v_event_person` -# ON DUPLICATE KEY UPDATE -# `id_random` = VALUES(`id_random`), -# `external_uid` = VALUES(`external_uid`), -# `external_id` = VALUES(`external_id`), -# `code` = VALUES(`code`), -# `account_id` = VALUES(`account_id`), -# `parent_type` = VALUES(`parent_type`), -# `parent_id` = VALUES(`parent_id`), -# `passcode` = VALUES(`passcode`), -# `name` = VALUES(`name`), -# `description` = VALUES(`description`), -# `status` = VALUES(`status`), -# `enable` = VALUES(`enable`), -# `enable_on` = VALUES(`enable_on`), -# `archive_on` = VALUES(`archive_on`), -# `restricted` = VALUES(`restricted`), -# `hide` = VALUES(`hide`), -# `priority` = VALUES(`priority`), -# `sort` = VALUES(`sort`), -# `group` = VALUES(`group`), -# `data_json` = VALUES(`data_json`), -# `cfg_json` = VALUES(`cfg_json`), -# `notes` = VALUES(`notes`), -# `created_on` = VALUES(`created_on`), -# `updated_on` = VALUES(`updated_on`); - - # This will run the generated SQL statement based on the object type and field map provided. +# Updated 2024-07-31 def handle_convert_obj_type( obj_type: str, field_map: Dict[str, str] diff --git a/static/ae/obj_type_map__event_device.json b/static/ae/obj_type_map__event_device.json index e69de29..9389d9f 100644 --- a/static/ae/obj_type_map__event_device.json +++ b/static/ae/obj_type_map__event_device.json @@ -0,0 +1,36 @@ +{ + "tbl_name": "v_event_device", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "NULL", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "`alert`", + "obj_alert_msg": "`alert_msg`", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "`event_notes`", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +} diff --git a/static/ae/obj_type_map__event_exhibit.json b/static/ae/obj_type_map__event_exhibit.json index e69de29..f4415a8 100644 --- a/static/ae/obj_type_map__event_exhibit.json +++ b/static/ae/obj_type_map__event_exhibit.json @@ -0,0 +1,36 @@ +{ + "tbl_name": "v_event_exhibit", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "`staff_passcode`", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "`enable_from_datetime`", + "obj_archive_on": "`archive_on`", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "`data_json`", + "obj_cfg_json": "`cfg_json`", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +} diff --git a/static/ae/obj_type_map__event_location.json b/static/ae/obj_type_map__event_location.json index e69de29..780f32c 100644 --- a/static/ae/obj_type_map__event_location.json +++ b/static/ae/obj_type_map__event_location.json @@ -0,0 +1,36 @@ +{ + "tbl_name": "v_event_location", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "NULL", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "`internal_use`", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +} diff --git a/static/ae/obj_type_map__event_person.json b/static/ae/obj_type_map__event_person.json index e69de29..7d2b31c 100644 --- a/static/ae/obj_type_map__event_person.json +++ b/static/ae/obj_type_map__event_person.json @@ -0,0 +1,36 @@ +{ + "tbl_name": "v_event_person", + "obj_id": "`id_random`", + "obj_ext_uid": "external_person_id", + "obj_ext_id": "`external_id`", + "obj_code": "NULL", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "NULL", + "obj_description": "NULL", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "`status`", + "obj_approve": "`approve`", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +} diff --git a/static/ae/obj_type_map__event_presenter.json b/static/ae/obj_type_map__event_presenter.json index e12c361..b097d70 100644 --- a/static/ae/obj_type_map__event_presenter.json +++ b/static/ae/obj_type_map__event_presenter.json @@ -3,14 +3,14 @@ "obj_id": "`id_random`", "obj_ext_uid": "NULL", "obj_ext_id": "`external_id`", - "obj_code": "NULL", + "obj_code": "`code`", "obj_type_ver_id": "`id`", "obj_account_id": "NULL", "obj_parent_type": "'event'", "obj_parent_id": "`event_id`", "obj_passcode": "`passcode`", "obj_name": "`full_name`", - "obj_description": "`description`", + "obj_description": "`biography`", "obj_alert": "NULL", "obj_alert_msg": "NULL", "obj_status": "NULL", diff --git a/static/ae/obj_type_map__event_session.json b/static/ae/obj_type_map__event_session.json index 5db099d..7230c08 100644 --- a/static/ae/obj_type_map__event_session.json +++ b/static/ae/obj_type_map__event_session.json @@ -19,7 +19,7 @@ "obj_enable": "`enable`", "obj_enable_on": "`enable_after_datetime`", "obj_archive_on": "`enable_before_datetime`", - "obj_restricted": "NULL", + "obj_restricted": "`internal_use`", "obj_hide": "`hide`", "obj_priority": "`priority`", "obj_sort": "`sort`", @@ -33,4 +33,4 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - } +} diff --git a/static/ae/obj_type_maps.json b/static/ae/obj_type_maps.json index b57026b..ab4e555 100644 --- a/static/ae/obj_type_maps.json +++ b/static/ae/obj_type_maps.json @@ -34,7 +34,7 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - }, +}, "user": { "tbl_name": "user", "obj_id": "`id_random`", @@ -70,7 +70,7 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - }, +}, "hosted_file": { "tbl_name": "hosted_file", "obj_id": "`id_random`", @@ -106,7 +106,7 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - }, +}, "person": { "tbl_name": "person", "obj_id": "`id_random`", @@ -142,7 +142,7 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - }, +}, "event": { "tbl_name": "event", "obj_id": "`id_random`", @@ -178,7 +178,7 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - }, +}, "event_session": { "tbl_name": "v_event_session", "obj_id": "`id_random`", @@ -200,6 +200,114 @@ "obj_enable": "`enable`", "obj_enable_on": "`enable_after_datetime`", "obj_archive_on": "`enable_before_datetime`", + "obj_restricted": "`internal_use`", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, +"event_file": { + "tbl_name": "v_event_file", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "NULL", + "obj_code": "NULL", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`filename`", + "obj_description": "NULL", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "`enable_after_datetime`", + "obj_archive_on": "`enable_before_datetime`", + "obj_restricted": "`internal_use`", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "NULL", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, +"event_badge": { + "tbl_name": "v_event_badge", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "NULL", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`full_name`", + "obj_description": "`description`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "`data_json`", + "obj_cfg_json": "`cfg_json`", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, + "event_presentation": { + "tbl_name": "v_event_presentation", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "NULL", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "`approve`", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "`enable_from_datetime`", + "obj_archive_on": "`archive_on`", "obj_restricted": "NULL", "obj_hide": "`hide`", "obj_priority": "`priority`", @@ -214,150 +322,186 @@ "obj_notes": "`notes`", "obj_created_on": "`created_on`", "obj_updated_on": "`updated_on`" - }, -"event_file": - { - "tbl_name": "v_event_file", - "obj_id": "`id_random`", - "obj_ext_uid": "NULL", - "obj_ext_id": "NULL", - "obj_code": "NULL", - "obj_type_ver_id": "`id`", - "obj_account_id": "`account_id`", - "obj_parent_type": "'event'", - "obj_parent_id": "`event_id`", - "obj_passcode": "NULL", - "obj_name": "`filename`", - "obj_description": "NULL", - "obj_alert": "NULL", - "obj_alert_msg": "NULL", - "obj_status": "NULL", - "obj_approve": "NULL", - "obj_approved_on": "NULL", - "obj_enable": "`enable`", - "obj_enable_on": "`enable_after_datetime`", - "obj_archive_on": "`enable_before_datetime`", - "obj_restricted": "`internal_use`", - "obj_hide": "`hide`", - "obj_priority": "`priority`", - "obj_sort": "`sort`", - "obj_group": "`group`", - "obj_ver": "NULL", - "obj_staff_notes": "NULL", - "obj_data_json": "NULL", - "obj_cfg_json": "NULL", - "obj_meta_json": "NULL", - "obj_other_json": "NULL", - "obj_notes": "NULL", - "obj_created_on": "`created_on`", - "obj_updated_on": "`updated_on`" - }, -"event_badge": { - "tbl_name": "v_event_badge", - "obj_id": "`id_random`", - "obj_ext_uid": "NULL", - "obj_ext_id": "`external_id`", - "obj_code": "NULL", - "obj_type_ver_id": "`id`", - "obj_account_id": "`account_id`", - "obj_parent_type": "'event'", - "obj_parent_id": "`event_id`", - "obj_passcode": "NULL", - "obj_name": "`full_name`", - "obj_description": "`description`", - "obj_alert": "NULL", - "obj_alert_msg": "NULL", - "obj_status": "NULL", - "obj_approve": "NULL", - "obj_approved_on": "NULL", - "obj_enable": "`enable`", - "obj_enable_on": "NULL", - "obj_archive_on": "NULL", - "obj_restricted": "NULL", - "obj_hide": "`hide`", - "obj_priority": "`priority`", - "obj_sort": "`sort`", - "obj_group": "`group`", - "obj_ver": "NULL", - "obj_staff_notes": "NULL", - "obj_data_json": "`data_json`", - "obj_cfg_json": "`cfg_json`", - "obj_meta_json": "NULL", - "obj_other_json": "NULL", - "obj_notes": "`notes`", - "obj_created_on": "`created_on`", - "obj_updated_on": "`updated_on`" - }, - "event_presentation": { - "tbl_name": "v_event_presentation", - "obj_id": "`id_random`", - "obj_ext_uid": "NULL", - "obj_ext_id": "`external_id`", - "obj_code": "NULL", - "obj_type_ver_id": "`id`", - "obj_account_id": "NULL", - "obj_parent_type": "'event'", - "obj_parent_id": "`event_id`", - "obj_passcode": "NULL", - "obj_name": "`name`", - "obj_description": "`description`", - "obj_alert": "NULL", - "obj_alert_msg": "NULL", - "obj_status": "NULL", - "obj_approve": "`approve`", - "obj_approved_on": "NULL", - "obj_enable": "`enable`", - "obj_enable_on": "`enable_from_datetime`", - "obj_archive_on": "`archive_on`", - "obj_restricted": "NULL", - "obj_hide": "`hide`", - "obj_priority": "`priority`", - "obj_sort": "`sort`", - "obj_group": "`group`", - "obj_ver": "NULL", - "obj_staff_notes": "NULL", - "obj_data_json": "NULL", - "obj_cfg_json": "NULL", - "obj_meta_json": "NULL", - "obj_other_json": "NULL", - "obj_notes": "`notes`", - "obj_created_on": "`created_on`", - "obj_updated_on": "`updated_on`" - }, +}, "event_presenter": { - "tbl_name": "v_event_presenter", - "obj_id": "`id_random`", - "obj_ext_uid": "NULL", - "obj_ext_id": "`external_id`", - "obj_code": "NULL", - "obj_type_ver_id": "`id`", - "obj_account_id": "NULL", - "obj_parent_type": "'event'", - "obj_parent_id": "`event_id`", - "obj_passcode": "`passcode`", - "obj_name": "`full_name`", - "obj_description": "`description`", - "obj_alert": "NULL", - "obj_alert_msg": "NULL", - "obj_status": "NULL", - "obj_approve": "NULL", - "obj_approved_on": "NULL", - "obj_enable": "`enable`", - "obj_enable_on": "NULL", - "obj_archive_on": "NULL", - "obj_restricted": "NULL", - "obj_hide": "`hide`", - "obj_priority": "`priority`", - "obj_sort": "`sort`", - "obj_group": "`group`", - "obj_ver": "NULL", - "obj_staff_notes": "NULL", - "obj_data_json": "`data_json`", - "obj_cfg_json": "`cfg_json`", - "obj_meta_json": "NULL", - "obj_other_json": "NULL", - "obj_notes": "`notes`", - "obj_created_on": "`created_on`", - "obj_updated_on": "`updated_on`" - }, + "tbl_name": "v_event_presenter", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "NULL", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "`passcode`", + "obj_name": "`full_name`", + "obj_description": "`biography`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "`data_json`", + "obj_cfg_json": "`cfg_json`", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, +"event_person": { + "tbl_name": "v_event_person", + "obj_id": "`id_random`", + "obj_ext_uid": "external_person_id", + "obj_ext_id": "`external_id`", + "obj_code": "NULL", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "NULL", + "obj_description": "NULL", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "`status`", + "obj_approve": "`approve`", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, +"event_location": { + "tbl_name": "v_event_location", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "NULL", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "`internal_use`", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, +"event_device": { + "tbl_name": "v_event_device", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "NULL", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "NULL", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "`alert`", + "obj_alert_msg": "`alert_msg`", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "NULL", + "obj_archive_on": "NULL", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "`event_notes`", + "obj_data_json": "NULL", + "obj_cfg_json": "NULL", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, +"event_exhibit": { + "tbl_name": "v_event_exhibit", + "obj_id": "`id_random`", + "obj_ext_uid": "NULL", + "obj_ext_id": "`external_id`", + "obj_code": "`code`", + "obj_type_ver_id": "`id`", + "obj_account_id": "`account_id`", + "obj_parent_type": "'event'", + "obj_parent_id": "`event_id`", + "obj_passcode": "`staff_passcode`", + "obj_name": "`name`", + "obj_description": "`description`", + "obj_alert": "NULL", + "obj_alert_msg": "NULL", + "obj_status": "NULL", + "obj_approve": "NULL", + "obj_approved_on": "NULL", + "obj_enable": "`enable`", + "obj_enable_on": "`enable_from_datetime`", + "obj_archive_on": "`archive_on`", + "obj_restricted": "NULL", + "obj_hide": "`hide`", + "obj_priority": "`priority`", + "obj_sort": "`sort`", + "obj_group": "`group`", + "obj_ver": "NULL", + "obj_staff_notes": "NULL", + "obj_data_json": "`data_json`", + "obj_cfg_json": "`cfg_json`", + "obj_meta_json": "NULL", + "obj_other_json": "NULL", + "obj_notes": "`notes`", + "obj_created_on": "`created_on`", + "obj_updated_on": "`updated_on`" +}, + } \ No newline at end of file