diff --git a/app/models/event_file_models.py b/app/models/event_file_models.py index 8703af0..64d483d 100644 --- a/app/models/event_file_models.py +++ b/app/models/event_file_models.py @@ -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): diff --git a/static/ae/obj_type_map__fundraising.json b/static/ae/obj_type_map__fundraising.json new file mode 100644 index 0000000..e69de29 diff --git a/static/ae/obj_type_map__grant.json b/static/ae/obj_type_map__grant.json new file mode 100644 index 0000000..e69de29 diff --git a/static/ae/obj_type_map__organization.json b/static/ae/obj_type_map__organization.json new file mode 100644 index 0000000..e69de29 diff --git a/static/ae/obj_type_map__page.json b/static/ae/obj_type_map__page.json new file mode 100644 index 0000000..e69de29 diff --git a/static/ae/obj_type_map__product.json b/static/ae/obj_type_map__product.json new file mode 100644 index 0000000..e69de29 diff --git a/static/ae/obj_type_map__sponsorship.json b/static/ae/obj_type_map__sponsorship.json new file mode 100644 index 0000000..40d8634 --- /dev/null +++ b/static/ae/obj_type_map__sponsorship.json @@ -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`" +} diff --git a/static/ae/obj_type_map__sponsorship_cfg.json b/static/ae/obj_type_map__sponsorship_cfg.json new file mode 100644 index 0000000..ebe1a1a --- /dev/null +++ b/static/ae/obj_type_map__sponsorship_cfg.json @@ -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" +} diff --git a/static/ae/obj_type_maps.json b/static/ae/obj_type_maps.json index a580ce4..76fb0a5 100644 --- a/static/ae/obj_type_maps.json +++ b/static/ae/obj_type_maps.json @@ -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" +}, } \ No newline at end of file