Still working on obj conversion.

This commit is contained in:
Scott Idem
2024-07-31 17:46:04 -04:00
parent e475ec6686
commit 4b7f924f7d
10 changed files with 312 additions and 439 deletions

View File

@@ -14,116 +14,6 @@ from app.models.core_object_models import Core_Std_Obj_Base, Core_Object_Base
router = APIRouter()
obj_type_map = {
'account': {
'tbl_name': 'account',
'obj_id': '`id_random`',
'obj_ext_uid': 'NULL',
'obj_ext_id': 'NULL',
'obj_code': '`code`',
'obj_type_ver_id': '`id`',
'obj_account_id': 'NULL',
'obj_parent_type': 'NULL',
'obj_parent_id': 'NULL',
'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': '`enable_from`',
'obj_archive_on': '`enable_to`',
'obj_restricted': 'NULL',
'obj_hide': 'FALSE',
'obj_priority': 'NULL',
'obj_sort': 'NULL',
'obj_group': 'NULL',
'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`',
},
'user': {
'tbl_name': 'user',
'obj_id': '`id_random`',
'obj_ext_uid': 'NULL',
'obj_ext_id': 'NULL',
'obj_code': '`email`',
'obj_type_ver_id': '`id`',
'obj_account_id': '`account_id`',
'obj_parent_type': 'NULL',
'obj_parent_id': 'NULL',
'obj_passcode': '`auth_key`',
'obj_name': '`name`',
'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_from`',
'obj_archive_on': '`enable_to`',
'obj_restricted': 'NULL',
'obj_hide': 'FALSE',
'obj_priority': 'NULL',
'obj_sort': 'NULL',
'obj_group': 'NULL',
'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`',
},
'hosted_file': {
'tbl_name': 'hosted_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': 'NULL',
'obj_parent_id': 'NULL',
'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': 'NULL',
'obj_archive_on': 'NULL',
'obj_restricted': 'NULL',
'obj_hide': '`hide`',
'obj_priority': 'NULL',
'obj_sort': 'NULL',
'obj_group': 'NULL',
'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`',
},
}
# Updated 2024-07-31
@router.get('/{obj_type}/convert')
@@ -146,27 +36,29 @@ def convert_obj_type(
log.debug(locals())
# ### SECTION ### Get the field map for the object type
# Check the URL to read the JSON formatted mapping data.
url = 'https://dev-api.oneskyit.com/static/ae/obj_type_maps.json'
# url = f'https://dev-api.oneskyit.com/static/ae/obj_type_map__{obj_type}.json'
# # Check the URL to read the JSON formatted mapping data.
# url = 'https://dev-api.oneskyit.com/static/ae/obj_type_maps.json'
# # url = f'https://dev-api.oneskyit.com/static/ae/obj_type_map__{obj_type}.json'
# resp = requests.get(url=url, headers={'Content-Type': 'application/json', 'Cache-Control': 'no-cache'})
# log.debug(f'Status Code: {resp.status_code}')
# log.debug(f'Headers: {resp.headers}')
# obj_type_maps = resp.json()
# log.debug(obj_type_maps)
# if obj_type not in obj_type_maps:
obj_type_maps = {}
url = f'https://dev-api.oneskyit.com/static/ae/obj_type_map__{obj_type}.json'
resp = requests.get(url=url, headers={'Content-Type': 'application/json', 'Cache-Control': 'no-cache'})
log.debug(f'Status Code: {resp.status_code}')
log.debug(f'Headers: {resp.headers}')
obj_type_maps = resp.json()
log.debug(obj_type_maps)
if obj_type not in obj_type_maps:
url = f'https://dev-api.oneskyit.com/static/ae/obj_type_map__{obj_type}.json'
resp = requests.get(url=url, headers={'Content-Type': 'application/json', 'Cache-Control': 'no-cache'})
log.debug(f'Status Code: {resp.status_code}')
log.debug(f'Headers: {resp.headers}')
if resp.status_code == 200:
obj_type_maps[obj_type] = resp.json()
else:
log.warning(f"Object type '{obj_type}' not found.")
raise HTTPException(status_code=404, detail=f"Object type '{obj_type}' not found.")
if resp.status_code == 200:
obj_type_maps[obj_type] = resp.json()
else:
log.warning(f"Object type '{obj_type}' not found.")
raise HTTPException(status_code=404, detail=f"Object type '{obj_type}' not found.")
field_map = obj_type_maps[obj_type]
log.debug(field_map)
@@ -186,314 +78,6 @@ def convert_obj_type(
return mk_resp(data=data, response=commons.response)
# Example SQL statements
# -- Core to obj conversion
# INSERT INTO obj (`obj_id`, `obj_code`, `obj_account_id`, `obj_type`, `obj_type_ver_id`, `obj_name`, `obj_description`, `obj_enable`, `obj_enable_on`, `obj_archive_on`, `obj_hide`, `obj_notes`, `obj_created_on`, `obj_updated_on`)
# SELECT
# `id_random` AS `obj_id`,
# `code` AS `obj_code`,
# NULL AS `obj_account_id`,
# 'account' AS `obj_type`,
# `id` AS `obj_type_ver_id`,
# `name` AS `obj_name`,
# `description` AS `obj_description`,
# `enable` AS `obj_enable`,
# `enable_from` AS `obj_enable_on`,
# `enable_to` AS `obj_archive_on`,
# FALSE AS `obj_hide`,
# `notes` AS `obj_notes`,
# `created_on` AS `obj_created_on`,
# `updated_on` AS `obj_updated_on`
# FROM
# `account`
# ON DUPLICATE KEY UPDATE
# `obj_id` = VALUES(`obj_id`),
# `obj_code` = VALUES(`obj_code`),
# `obj_account_id` = VALUES(`obj_account_id`),
# `obj_name` = VALUES(`obj_name`),
# `obj_description` = VALUES(`obj_description`),
# `obj_enable` = VALUES(`obj_enable`),
# `obj_enable_on` = VALUES(`obj_enable_on`),
# `obj_archive_on` = VALUES(`obj_archive_on`),
# `obj_hide` = VALUES(`obj_hide`),
# `obj_notes` = VALUES(`obj_notes`),
# `obj_created_on` = VALUES(`obj_created_on`),
# `obj_updated_on` = VALUES(`obj_updated_on`);
# INSERT INTO obj (`obj_id`, `obj_ext_uid`, `obj_ext_id`, `obj_code`, `obj_type`, `obj_type_ver_id`, `obj_account_id`, `obj_passcode`, `obj_name`, `obj_description`, `obj_enable`, `obj_hide`, `obj_group`, `obj_notes`, `obj_created_on`, `obj_updated_on`)
# SELECT
# `id_random` AS `obj_id`,
# `external_sys_id` AS `obj_ext_uid`,
# `external_id` AS `obj_ext_id`,
# `primary_email` AS `obj_code`,
# 'person' AS `obj_type`,
# `id` AS `obj_type_ver_id`,
# `account_id` AS `obj_account_id`,
# `passcode` AS `obj_passcode`,
# `full_name` AS `obj_name`,
# `description` AS `obj_description`,
# `enable` AS `obj_enable`,
# `hide` AS `obj_hide`,
# `group` AS `obj_group`,
# `notes` AS `obj_notes`,
# `created_on` AS `obj_created_on`,
# `updated_on` AS `obj_updated_on`
# FROM
# `person`
# ON DUPLICATE KEY UPDATE
# `obj_id` = VALUES(`obj_id`),
# `obj_ext_uid` = VALUES(`obj_ext_uid`),
# `obj_ext_id` = VALUES(`obj_ext_id`),
# `obj_code` = VALUES(`obj_code`),
# `obj_account_id` = VALUES(`obj_account_id`),
# `obj_passcode` = VALUES(`obj_passcode`),
# `obj_name` = VALUES(`obj_name`),
# `obj_description` = VALUES(`obj_description`),
# `obj_enable` = VALUES(`obj_enable`),
# `obj_hide` = VALUES(`obj_hide`),
# `obj_group` = VALUES(`obj_group`),
# `obj_notes` = VALUES(`obj_notes`),
# `obj_created_on` = VALUES(`obj_created_on`),
# `obj_updated_on` = VALUES(`obj_updated_on`);
# INSERT INTO obj (`obj_id`, `obj_code`, `obj_type`, `obj_type_ver_id`, `obj_account_id`, `obj_passcode`, `obj_name`, `obj_enable`, `obj_enable_on`, `obj_archive_on`, `obj_hide`, `obj_priority`, `obj_sort`, `obj_group`, `obj_notes`, `obj_created_on`, `obj_updated_on`)
# SELECT
# `id_random` AS `obj_id`,
# `email` AS `obj_code`,
# 'user' AS `obj_type`,
# `id` AS `obj_type_ver_id`,
# `account_id` AS `obj_account_id`,
# `auth_key` AS `obj_passcode`,
# `name` AS `obj_name`,
# `enable` AS `obj_enable`,
# `enable_from` AS `obj_enable_on`,
# `enable_to` AS `obj_archive_on`,
# `hide` AS `obj_hide`,
# `priority` AS `obj_priority`,
# `sort` AS `obj_sort`,
# `group` AS `obj_group`,
# `notes` AS `obj_notes`,
# `created_on` AS `obj_created_on`,
# `updated_on` AS `obj_updated_on`
# FROM
# `user`
# ON DUPLICATE KEY UPDATE
# `obj_id` = VALUES(`obj_id`),
# `obj_code` = VALUES(`obj_code`),
# `obj_account_id` = VALUES(`obj_account_id`),
# `obj_passcode` = VALUES(`obj_passcode`),
# `obj_name` = VALUES(`obj_name`),
# `obj_enable` = VALUES(`obj_enable`),
# `obj_enable_on` = VALUES(`obj_enable_on`),
# `obj_archive_on` = VALUES(`obj_archive_on`),
# `obj_hide` = VALUES(`obj_hide`),
# `obj_priority` = VALUES(`obj_priority`),
# `obj_sort` = VALUES(`obj_sort`),
# `obj_group` = VALUES(`obj_group`),
# `obj_notes` = VALUES(`obj_notes`),
# `obj_created_on` = VALUES(`obj_created_on`),
# `obj_updated_on` = VALUES(`obj_updated_on`);
# INSERT INTO obj (`obj_id`, `obj_code`, `obj_type`, `obj_type_ver_id`, `obj_account_id`, `obj_passcode`, `obj_name`, `obj_description`, `obj_enable`, `obj_enable_on`, `obj_archive_on`, `obj_hide`, `obj_priority`, `obj_sort`, `obj_group`, `obj_cfg_json`, `obj_notes`, `obj_created_on`, `obj_updated_on`)
# SELECT
# `id_random` AS `obj_id`,
# NULL AS `obj_code`,
# 'hosted_file' AS `obj_type`,
# `id` AS `obj_type_ver_id`,
# `account_id` AS `obj_account_id`,
# NULL AS `obj_passcode`,
# `filename` AS `obj_name`,
# NULL AS `obj_description`,
# `enable` AS `obj_enable`,
# NULL AS `obj_enable_on`,
# NULL AS `obj_archive_on`,
# `hide` AS `obj_hide`,
# NULL AS `obj_priority`,
# NULL AS `obj_sort`,
# NULL AS `obj_group`,
# NULL AS `obj_cfg_json`,
# `notes` AS `obj_notes`,
# `created_on` AS `obj_created_on`,
# `updated_on` AS `obj_updated_on`
# FROM
# `hosted_file`
# ON DUPLICATE KEY UPDATE
# `obj_id` = VALUES(`obj_id`),
# `obj_code` = VALUES(`obj_code`),
# `obj_account_id` = VALUES(`obj_account_id`),
# `obj_passcode` = VALUES(`obj_passcode`),
# `obj_name` = VALUES(`obj_name`),
# `obj_description` = VALUES(`obj_description`),
# `obj_enable` = VALUES(`obj_enable`),
# `obj_enable_on` = VALUES(`obj_enable_on`),
# `obj_archive_on` = VALUES(`obj_archive_on`),
# `obj_hide` = VALUES(`obj_hide`),
# `obj_priority` = VALUES(`obj_priority`),
# `obj_sort` = VALUES(`obj_sort`),
# `obj_group` = VALUES(`obj_group`),
# `obj_cfg_json` = VALUES(`obj_cfg_json`),
# `obj_notes` = VALUES(`obj_notes`),
# `obj_created_on` = VALUES(`obj_created_on`),
# `obj_updated_on` = VALUES(`obj_updated_on`);
# -- Event to obj conversion
# INSERT INTO obj (`id_random`, `code`, `type_name`, `type_ver_id`, `account_id`, `passcode`, `name`, `description`, `enable`, `enable_on`, `archive_on`, `hide`, `priority`, `sort`, `group`, `cfg_json`, `notes`, `created_on`, `updated_on`)
# SELECT
# `id_random`,
# `code` AS `code`,
# 'event' AS `type_name`,
# `id` AS `type_ver_id`,
# `account_id` AS `account_id`,
# NULL AS `passcode`,
# `name` AS `name`,
# `description` AS `description`,
# `enable` AS `enable`,
# `enable_from` AS `enable_on`,
# `enable_to` AS `archive_on`,
# `hide` AS `hide`,
# `priority` AS `priority`,
# `sort` AS `sort`,
# `group` AS `group`,
# `cfg_json` AS `cfg_json`,
# `notes` AS `notes`,
# `created_on` AS `created_on`,
# `updated_on` AS `updated_on`
# FROM
# `event`
# ON DUPLICATE KEY UPDATE
# `id_random` = VALUES(`id_random`),
# `code` = VALUES(`code`),
# `account_id` = VALUES(`account_id`),
# `passcode` = VALUES(`passcode`),
# `name` = VALUES(`name`),
# `description` = VALUES(`description`),
# `enable` = VALUES(`enable`),
# `enable_on` = VALUES(`enable_on`),
# `archive_on` = VALUES(`archive_on`),
# `hide` = VALUES(`hide`),
# `priority` = VALUES(`priority`),
# `sort` = VALUES(`sort`),
# `group` = VALUES(`group`),
# `cfg_json` = VALUES(`cfg_json`),
# `notes` = VALUES(`notes`),
# `created_on` = VALUES(`created_on`),
# `updated_on` = VALUES(`updated_on`);
# INSERT INTO obj (`id_random`, `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`, `cfg_json`, `notes`, `created_on`, `updated_on`)
# SELECT
# `id_random`,
# NULL AS `code`,
# 'event_file' 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`,
# `filename` AS `name`,
# NULL AS `description`,
# `status` AS `status`,
# `enable` AS `enable`,
# `enable_after_datetime` AS `enable_on`,
# `enable_before_datetime` AS `archive_on`,
# `internal_use` AS `restricted`,
# `hide` AS `hide`,
# `priority` AS `priority`,
# `sort` AS `sort`,
# `group` AS `group`,
# NULL AS `cfg_json`,
# NULL AS `notes`,
# `created_on` AS `created_on`,
# `updated_on` AS `updated_on`
# FROM
# `v_event_file`
# ON DUPLICATE KEY UPDATE
# `id_random` = VALUES(`id_random`),
# `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`),
# `cfg_json` = VALUES(`cfg_json`),
# `notes` = VALUES(`notes`),
# `created_on` = VALUES(`created_on`),
# `updated_on` = VALUES(`updated_on`);
# 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`,
# NULL AS `external_uid`,
# `external_id` AS `external_id`,
# NULL AS `code`,
# 'event_badge' 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`,
# `full_name` AS `name`,
# NULL AS `description`,
# NULL 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`,
# `data_json` AS `data_json`,
# `cfg_json` AS `cfg_json`,
# `notes` AS `notes`,
# `created_on` AS `created_on`,
# `updated_on` AS `updated_on`
# FROM
# `v_event_badge`
# 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`);
# 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`,
@@ -556,7 +140,7 @@ def handle_convert_obj_type(
obj_type: str,
field_map: Dict[str, str]
) -> Dict[str, Union[str, int]]:
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
# ### SECTION ### Create the SQL statement to convert the object type to the new model
@@ -656,7 +240,7 @@ def handle_convert_obj_type(
# return False
# ### SECTION ### Execute the SQL statement
result = run_sql_select(sql, commit=True, log_lvl=logging.DEBUG)
result = run_sql_select(sql, commit=True, log_lvl=logging.INFO)
log.info(result.rowcount)
log.debug(result.lastrowid)

View File

@@ -0,0 +1,36 @@
{
"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": "NULL",
"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`"
}

View File

@@ -0,0 +1,36 @@
{
"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`"
}

View File

@@ -0,0 +1,36 @@
{
"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`"
}

View File

@@ -0,0 +1,36 @@
{
"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`"
}

View File

@@ -214,5 +214,150 @@
"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`"
},
}