Added more object type maps. Spelling fix in comment.

This commit is contained in:
Scott Idem
2024-08-09 14:39:20 -04:00
parent d6b9b0b950
commit 30f3aaea27
9 changed files with 145 additions and 1 deletions

View File

@@ -202,7 +202,7 @@ class Event_File_Base(BaseModel):
return redis_lookup_id_random(record_id_random=id_random, table_name='event_track')
return None
# NOTE: I kind of give up on this. Handeling this outside of Pydantic and before the data is even attempted to be loaded into the Event_File_Base model. -STI 2021-09-10
# NOTE: I kind of give up on this. Handling this outside of Pydantic and before the data is even attempted to be loaded into the Event_File_Base model. -STI 2021-09-10
# NOTE: This validator will try to find and "set" the for_id_random value. However, The value is not really "set" in Pydantic. To get this value, exclude_unset=True when returning a dict from the model.
# @validator('for_id_random', always=True)
# def for_id_random_lookup(cls, v, values, **kwargs):

View File

View File

View File

View File

View File

@@ -0,0 +1,36 @@
{
"tbl_name": "v_sponsorship",
"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": "'sponsorship_cfg'",
"obj_parent_id": "`sponsorship_cfg_id`",
"obj_passcode": "NULL",
"obj_name": "`name`",
"obj_description": "`description`",
"obj_alert": "NULL",
"obj_alert_msg": "NULL",
"obj_status": "NULL",
"obj_approve": "`agree`",
"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`"
}

View File

@@ -0,0 +1,36 @@
{
"tbl_name": "v_sponsorship_cfg",
"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": "`for_type`",
"obj_parent_id": "`for_id`",
"obj_passcode": "NULL",
"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": "NULL",
"obj_enable_on": "NULL",
"obj_archive_on": "NULL",
"obj_restricted": "NULL",
"obj_hide": "NULL",
"obj_priority": "NULL",
"obj_sort": "NULL",
"obj_group": "NULL",
"obj_ver": "NULL",
"obj_staff_notes": "NULL",
"obj_data_json": "NULL",
"obj_cfg_json": "`cfg_json`",
"obj_meta_json": "NULL",
"obj_other_json": "NULL",
"obj_notes": "NULL",
"obj_created_on": "NULL",
"obj_updated_on": "NULL"
}

View File

@@ -1007,6 +1007,78 @@
"obj_created_on": "`created_on`",
"obj_updated_on": "`updated_on`"
},
"sponsorship": {
"tbl_name": "v_sponsorship",
"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": "'sponsorship_cfg'",
"obj_parent_id": "`sponsorship_cfg_id`",
"obj_passcode": "NULL",
"obj_name": "`name`",
"obj_description": "`description`",
"obj_alert": "NULL",
"obj_alert_msg": "NULL",
"obj_status": "NULL",
"obj_approve": "`agree`",
"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`"
},
"sponsorship_cfg": {
"tbl_name": "v_sponsorship_cfg",
"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": "`for_type`",
"obj_parent_id": "`for_id`",
"obj_passcode": "NULL",
"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": "NULL",
"obj_enable_on": "NULL",
"obj_archive_on": "NULL",
"obj_restricted": "NULL",
"obj_hide": "NULL",
"obj_priority": "NULL",
"obj_sort": "NULL",
"obj_group": "NULL",
"obj_ver": "NULL",
"obj_staff_notes": "NULL",
"obj_data_json": "NULL",
"obj_cfg_json": "`cfg_json`",
"obj_meta_json": "NULL",
"obj_other_json": "NULL",
"obj_notes": "NULL",
"obj_created_on": "NULL",
"obj_updated_on": "NULL"
},
}