160 lines
5.0 KiB
Python
160 lines
5.0 KiB
Python
from app.models.account_models import *
|
|
from app.models.account_cfg_models import *
|
|
from app.models.activity_log_models import *
|
|
from app.models.address_models import *
|
|
from app.models.contact_models import *
|
|
from app.models.data_store_models import *
|
|
from app.models.organization_models import *
|
|
from app.models.person_models import *
|
|
from app.models.user_models import *
|
|
from app.models.user_role_models import *
|
|
from app.models.log_client_viewing_models import Log_Client_Viewing_Base
|
|
|
|
core_obj_li = {
|
|
'activity_log': {
|
|
'tbl': 'activity_log',
|
|
'tbl_default': 'v_activity_log',
|
|
'tbl_update': 'activity_log',
|
|
'mdl': Activity_Log_Base,
|
|
'mdl_default': Activity_Log_Base,
|
|
'mdl_in': Activity_Log_Base,
|
|
'mdl_out': Activity_Log_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_activity_log',
|
|
'tbl_name_update': 'activity_log',
|
|
'base_name': Activity_Log_Base,
|
|
},
|
|
'account': {
|
|
'tbl': 'account',
|
|
'tbl_default': 'account',
|
|
'tbl_update': 'account',
|
|
'mdl': Account_Base,
|
|
'mdl_default': Account_Base,
|
|
'mdl_in': Account_Base,
|
|
'mdl_out': Account_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'account',
|
|
'tbl_name_update': 'account',
|
|
'base_name': Account_Base,
|
|
},
|
|
'account_cfg': {
|
|
'tbl': 'account_cfg',
|
|
'tbl_default': 'v_account_cfg',
|
|
'tbl_update': 'account_cfg',
|
|
'mdl': Account_Cfg_Base,
|
|
'mdl_default': Account_Cfg_Base,
|
|
'mdl_in': Account_Cfg_Base,
|
|
'mdl_out': Account_Cfg_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_account_cfg',
|
|
'tbl_name_update': 'account_cfg',
|
|
'base_name': Account_Cfg_Base,
|
|
},
|
|
'address': {
|
|
'tbl': 'address',
|
|
'tbl_default': 'v_address',
|
|
'tbl_update': 'address',
|
|
'mdl': Address_Base,
|
|
'mdl_default': Address_Base,
|
|
'mdl_in': Address_Base,
|
|
'mdl_out': Address_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_address',
|
|
'tbl_name_update': 'address',
|
|
'base_name': Address_Base,
|
|
},
|
|
'contact': {
|
|
'tbl': 'contact',
|
|
'tbl_default': 'v_contact',
|
|
'tbl_update': 'contact',
|
|
'mdl': Contact_Base,
|
|
'mdl_default': Contact_Base,
|
|
'mdl_in': Contact_Base,
|
|
'mdl_out': Contact_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_contact',
|
|
'tbl_name_update': 'contact',
|
|
'base_name': Contact_Base,
|
|
},
|
|
'data_store': {
|
|
'tbl': 'data_store',
|
|
'tbl_default': 'v_data_store',
|
|
'tbl_update': 'data_store',
|
|
'mdl': Data_Store_Base,
|
|
'mdl_default': Data_Store_Base,
|
|
'mdl_in': Data_Store_Base,
|
|
'mdl_out': Data_Store_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_data_store',
|
|
'tbl_name_update': 'data_store',
|
|
'base_name': Data_Store_Base,
|
|
},
|
|
'organization': {
|
|
'tbl': 'organization',
|
|
'tbl_default': 'v_organization',
|
|
'tbl_update': 'organization',
|
|
'mdl': Organization_Base,
|
|
'mdl_default': Organization_Base,
|
|
'mdl_in': Organization_Base,
|
|
'mdl_out': Organization_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_organization',
|
|
'tbl_name_update': 'organization',
|
|
'base_name': Organization_Base,
|
|
},
|
|
'person': {
|
|
'tbl': 'v_person',
|
|
'tbl_default': 'v_person',
|
|
'tbl_alt': 'v_person',
|
|
'tbl_update': 'person',
|
|
'mdl': Person_Base,
|
|
'mdl_default': Person_Base,
|
|
'mdl_in': Person_Base,
|
|
'mdl_out': Person_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_person',
|
|
'tbl_name_update': 'person',
|
|
'base_name': Person_Base,
|
|
'exp_default': [
|
|
'person_id_random',
|
|
'given_name', 'middle_name', 'family_name', 'full_name',
|
|
'primary_email',
|
|
'enable', 'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on',
|
|
],
|
|
},
|
|
'user': {
|
|
'tbl': 'v_user',
|
|
'tbl_default': 'v_user',
|
|
'tbl_alt': 'v_user',
|
|
'tbl_update': 'user',
|
|
'mdl': User_Base,
|
|
'mdl_default': User_Base,
|
|
'mdl_in': User_New_Base,
|
|
'mdl_out': User_Out_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_user',
|
|
'tbl_name_update': 'user',
|
|
'base_name': User_Base,
|
|
'exp_default': [
|
|
'user_id_random',
|
|
'account_id_random',
|
|
'username', 'name', 'email',
|
|
'enable', 'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on',
|
|
],
|
|
},
|
|
'user_role': {
|
|
'mdl': User_Role_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_user_role',
|
|
'tbl_name_update': 'user_role',
|
|
'base_name': User_Role_Base,
|
|
},
|
|
'log_client_viewing': {
|
|
'mdl': Log_Client_Viewing_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'log_client_viewing',
|
|
'tbl_name_update': 'log_client_viewing',
|
|
'base_name': Log_Client_Viewing_Base,
|
|
},
|
|
}
|