oms-ClientManagement/Admin/Install/db.json
Dennis Eichhorn 0812a2cb1b
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
Test fixes
2024-05-16 02:14:54 +00:00

502 lines
18 KiB
JSON
Executable File

{
"clientmgmt_client": {
"name": "clientmgmt_client",
"fields": {
"clientmgmt_client_id": {
"name": "clientmgmt_client_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_no": {
"name": "clientmgmt_client_no",
"type": "VARCHAR(255)",
"null": false
},
"clientmgmt_client_no_reverse": {
"name": "clientmgmt_client_no_reverse",
"type": "VARCHAR(255)",
"null": false
},
"clientmgmt_client_status": {
"name": "clientmgmt_client_status",
"type": "TINYINT",
"null": false
},
"clientmgmt_client_type": {
"name": "clientmgmt_client_type",
"type": "TINYINT",
"null": false
},
"clientmgmt_client_info": {
"name": "clientmgmt_client_info",
"type": "TEXT",
"null": false
},
"clientmgmt_client_created_at": {
"name": "clientmgmt_client_created_at",
"type": "DATETIME",
"null": false
},
"clientmgmt_client_rep": {
"name": "clientmgmt_client_rep",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "sales_rep",
"foreignKey": "sales_rep_id"
},
"clientmgmt_client_account": {
"name": "clientmgmt_client_account",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"clientmgmt_client_address": {
"name": "clientmgmt_client_address",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "address",
"foreignKey": "address_id"
},
"clientmgmt_client_unit": {
"name": "clientmgmt_client_unit",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
},
"clientmgmt_client_l11n_type": {
"name": "clientmgmt_client_l11n_type",
"fields": {
"clientmgmt_client_l11n_type_id": {
"name": "clientmgmt_client_l11n_type_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_l11n_type_title": {
"name": "clientmgmt_client_l11n_type_title",
"type": "VARCHAR(50)",
"null": false
},
"clientmgmt_client_l11n_type_required": {
"name": "clientmgmt_client_l11n_type_required",
"type": "TINYINT(1)",
"null": false
}
}
},
"clientmgmt_client_l11n": {
"name": "clientmgmt_client_l11n",
"fields": {
"clientmgmt_client_l11n_id": {
"name": "clientmgmt_client_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_l11n_description": {
"name": "clientmgmt_client_l11n_description",
"type": "TEXT",
"null": false
},
"clientmgmt_client_l11n_client": {
"name": "clientmgmt_client_l11n_client",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
},
"clientmgmt_client_l11n_typeref": {
"name": "clientmgmt_client_l11n_typeref",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_client_l11n_type",
"foreignKey": "clientmgmt_client_l11n_type_id"
},
"clientmgmt_client_l11n_lang": {
"name": "clientmgmt_client_l11n_lang",
"type": "VARCHAR(2)",
"null": false,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"clientmgmt_client_contactelement": {
"name": "clientmgmt_client_contactelement",
"fields": {
"clientmgmt_client_contactelement_id": {
"name": "clientmgmt_client_contactelement_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_contactelement_dst": {
"name": "clientmgmt_client_contactelement_dst",
"type": "INT",
"null": false,
"foreignTable": "profile_contact_element",
"foreignKey": "profile_contact_element_id"
},
"clientmgmt_client_contactelement_src": {
"name": "clientmgmt_client_contactelement_src",
"type": "INT",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
}
}
},
"clientmgmt_client_payment": {
"name": "clientmgmt_client_payment",
"fields": {
"clientmgmt_client_payment_id": {
"name": "clientmgmt_client_payment_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_payment_dst": {
"name": "clientmgmt_client_payment_dst",
"type": "INT",
"null": false,
"foreignTable": "payment",
"foreignKey": "payment_id"
},
"clientmgmt_client_payment_src": {
"name": "clientmgmt_client_payment_src",
"type": "INT",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
}
}
},
"clientmgmt_attr_type": {
"name": "clientmgmt_attr_type",
"fields": {
"clientmgmt_attr_type_id": {
"name": "clientmgmt_attr_type_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_attr_type_name": {
"name": "clientmgmt_attr_type_name",
"type": "VARCHAR(255)",
"null": false,
"unique": true
},
"clientmgmt_attr_type_datatype": {
"name": "clientmgmt_attr_type_datatype",
"type": "INT(11)",
"null": false
},
"clientmgmt_attr_type_fields": {
"name": "clientmgmt_attr_type_fields",
"type": "INT(11)",
"null": false
},
"clientmgmt_attr_type_custom": {
"name": "clientmgmt_attr_type_custom",
"type": "TINYINT(1)",
"null": false
},
"clientmgmt_attr_type_repeatable": {
"name": "clientmgmt_attr_type_repeatable",
"type": "TINYINT(1)",
"null": false
},
"clientmgmt_attr_type_internal": {
"name": "clientmgmt_attr_type_internal",
"type": "TINYINT(1)",
"null": false
},
"clientmgmt_attr_type_required": {
"comment": "Every item must have this attribute type if set to true.",
"name": "clientmgmt_attr_type_required",
"type": "TINYINT(1)",
"null": false
},
"clientmgmt_attr_type_pattern": {
"comment": "This is a regex validation pattern.",
"name": "clientmgmt_attr_type_pattern",
"type": "VARCHAR(255)",
"null": false
}
}
},
"clientmgmt_attr_type_l11n": {
"name": "clientmgmt_attr_type_l11n",
"fields": {
"clientmgmt_attr_type_l11n_id": {
"name": "clientmgmt_attr_type_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_attr_type_l11n_title": {
"name": "clientmgmt_attr_type_l11n_title",
"type": "VARCHAR(255)",
"null": false
},
"clientmgmt_attr_type_l11n_type": {
"name": "clientmgmt_attr_type_l11n_type",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_attr_type",
"foreignKey": "clientmgmt_attr_type_id"
},
"clientmgmt_attr_type_l11n_lang": {
"name": "clientmgmt_attr_type_l11n_lang",
"type": "VARCHAR(2)",
"null": false,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"clientmgmt_attr_value": {
"name": "clientmgmt_attr_value",
"fields": {
"clientmgmt_attr_value_id": {
"name": "clientmgmt_attr_value_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_attr_value_default": {
"name": "clientmgmt_attr_value_default",
"type": "TINYINT(1)",
"null": false
},
"clientmgmt_attr_value_valueStr": {
"name": "clientmgmt_attr_value_valueStr",
"type": "VARCHAR(255)",
"null": true,
"default": null
},
"clientmgmt_attr_value_valueInt": {
"name": "clientmgmt_attr_value_valueInt",
"type": "INT(11)",
"null": true,
"default": null
},
"clientmgmt_attr_value_valueDec": {
"name": "clientmgmt_attr_value_valueDec",
"type": "DECIMAL(19,5)",
"null": true,
"default": null
},
"clientmgmt_attr_value_valueDat": {
"name": "clientmgmt_attr_value_valueDat",
"type": "DATETIME",
"null": true,
"default": null
},
"clientmgmt_attr_value_unit": {
"name": "clientmgmt_attr_value_unit",
"type": "VARCHAR(255)",
"null": false
},
"clientmgmt_attr_value_deptype": {
"name": "clientmgmt_attr_value_deptype",
"type": "INT(11)",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_type",
"foreignKey": "clientmgmt_attr_type_id"
},
"clientmgmt_attr_value_depvalue": {
"name": "clientmgmt_attr_value_depvalue",
"type": "INT(11)",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
}
}
},
"clientmgmt_attr_value_l11n": {
"name": "clientmgmt_attr_value_l11n",
"fields": {
"clientmgmt_attr_value_l11n_id": {
"name": "clientmgmt_attr_value_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_attr_value_l11n_title": {
"name": "clientmgmt_attr_value_l11n_title",
"type": "VARCHAR(255)",
"null": false
},
"clientmgmt_attr_value_l11n_value": {
"name": "clientmgmt_attr_value_l11n_value",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
},
"clientmgmt_attr_value_l11n_lang": {
"name": "clientmgmt_attr_value_l11n_lang",
"type": "VARCHAR(2)",
"null": false,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"clientmgmt_client_attr_default": {
"name": "clientmgmt_client_attr_default",
"fields": {
"clientmgmt_client_attr_default_id": {
"name": "clientmgmt_client_attr_default_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_attr_default_type": {
"name": "clientmgmt_client_attr_default_type",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_attr_type",
"foreignKey": "clientmgmt_attr_type_id"
},
"clientmgmt_client_attr_default_value": {
"name": "clientmgmt_client_attr_default_value",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
}
}
},
"clientmgmt_client_attr": {
"name": "clientmgmt_client_attr",
"fields": {
"clientmgmt_client_attr_id": {
"name": "clientmgmt_client_attr_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_attr_client": {
"name": "clientmgmt_client_attr_client",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
},
"clientmgmt_client_attr_type": {
"name": "clientmgmt_client_attr_type",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_attr_type",
"foreignKey": "clientmgmt_attr_type_id"
},
"clientmgmt_client_attr_value": {
"name": "clientmgmt_client_attr_value",
"type": "INT(11)",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
}
}
},
"clientmgmt_client_account": {
"name": "clientmgmt_client_account",
"fields": {
"clientmgmt_client_account_id": {
"name": "clientmgmt_client_account_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_account_account": {
"name": "clientmgmt_client_account_account",
"type": "VARCHAR(10)",
"null": false
},
"clientmgmt_client_account_client": {
"name": "clientmgmt_client_account_client",
"type": "INT(11)",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
}
}
},
"clientmgmt_client_media": {
"name": "clientmgmt_client_media",
"fields": {
"clientmgmt_client_media_id": {
"name": "clientmgmt_client_media_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_media_dst": {
"name": "clientmgmt_client_media_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
},
"clientmgmt_client_media_src": {
"name": "clientmgmt_client_media_src",
"type": "INT",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
}
}
},
"clientmgmt_client_note": {
"name": "clientmgmt_client_note",
"fields": {
"clientmgmt_client_note_id": {
"name": "clientmgmt_client_note_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"clientmgmt_client_note_dst": {
"name": "clientmgmt_client_note_dst",
"type": "INT",
"null": false,
"foreignTable": "editor_doc",
"foreignKey": "editor_doc_id"
},
"clientmgmt_client_note_src": {
"name": "clientmgmt_client_note_src",
"type": "INT",
"null": false,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
}
}
}
}