{ "suppliermgmt_supplier": { "name": "suppliermgmt_supplier", "fields": { "suppliermgmt_supplier_id": { "name": "suppliermgmt_supplier_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_no": { "name": "suppliermgmt_supplier_no", "type": "VARCHAR(255)", "null": false }, "suppliermgmt_supplier_no_reverse": { "name": "suppliermgmt_supplier_no_reverse", "type": "VARCHAR(255)", "null": false }, "suppliermgmt_supplier_status": { "name": "suppliermgmt_supplier_status", "type": "TINYINT", "null": false }, "suppliermgmt_supplier_type": { "name": "suppliermgmt_supplier_type", "type": "TINYINT", "null": false }, "suppliermgmt_supplier_info": { "name": "suppliermgmt_supplier_info", "type": "TEXT", "null": false }, "suppliermgmt_supplier_created_at": { "name": "suppliermgmt_supplier_created_at", "type": "DATETIME", "null": false }, "suppliermgmt_supplier_account": { "name": "suppliermgmt_supplier_account", "type": "INT", "null": false, "foreignTable": "account", "foreignKey": "account_id" }, "suppliermgmt_supplier_address": { "name": "suppliermgmt_supplier_address", "type": "INT", "null": true, "default": null, "foreignTable": "address", "foreignKey": "address_id" }, "suppliermgmt_supplier_unit": { "name": "suppliermgmt_supplier_unit", "type": "INT", "default": null, "null": true, "foreignTable": "unit", "foreignKey": "unit_id" } } }, "suppliermgmt_supplier_l11n_type": { "name": "suppliermgmt_supplier_l11n_type", "fields": { "suppliermgmt_supplier_l11n_type_id": { "name": "suppliermgmt_supplier_l11n_type_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_l11n_type_title": { "name": "suppliermgmt_supplier_l11n_type_title", "type": "VARCHAR(50)", "null": false }, "suppliermgmt_supplier_l11n_type_required": { "name": "suppliermgmt_supplier_l11n_type_required", "type": "TINYINT(1)", "null": false } } }, "suppliermgmt_supplier_l11n": { "name": "suppliermgmt_supplier_l11n", "fields": { "suppliermgmt_supplier_l11n_id": { "name": "suppliermgmt_supplier_l11n_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_l11n_description": { "name": "suppliermgmt_supplier_l11n_description", "type": "TEXT", "null": false }, "suppliermgmt_supplier_l11n_supplier": { "name": "suppliermgmt_supplier_l11n_supplier", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_supplier", "foreignKey": "suppliermgmt_supplier_id" }, "suppliermgmt_supplier_l11n_typeref": { "name": "suppliermgmt_supplier_l11n_typeref", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_supplier_l11n_type", "foreignKey": "suppliermgmt_supplier_l11n_type_id" }, "suppliermgmt_supplier_l11n_lang": { "name": "suppliermgmt_supplier_l11n_lang", "type": "VARCHAR(2)", "null": false, "foreignTable": "language", "foreignKey": "language_639_1" } } }, "suppliermgmt_supplier_contactelement": { "name": "suppliermgmt_supplier_contactelement", "fields": { "suppliermgmt_supplier_contactelement_id": { "name": "suppliermgmt_supplier_contactelement_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_contactelement_dst": { "name": "suppliermgmt_supplier_contactelement_dst", "type": "INT", "null": false, "foreignTable": "profile_contact_element", "foreignKey": "profile_contact_element_id" }, "suppliermgmt_supplier_contactelement_src": { "name": "suppliermgmt_supplier_contactelement_src", "type": "INT", "null": false, "foreignTable": "suppliermgmt_supplier", "foreignKey": "suppliermgmt_supplier_id" } } }, "suppliermgmt_attr_type": { "name": "suppliermgmt_attr_type", "fields": { "suppliermgmt_attr_type_id": { "name": "suppliermgmt_attr_type_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_attr_type_name": { "name": "suppliermgmt_attr_type_name", "type": "VARCHAR(255)", "null": false, "unique": true }, "suppliermgmt_attr_type_datatype": { "name": "suppliermgmt_attr_type_datatype", "type": "INT(11)", "null": false }, "suppliermgmt_attr_type_fields": { "name": "suppliermgmt_attr_type_fields", "type": "INT(11)", "null": false }, "suppliermgmt_attr_type_custom": { "name": "suppliermgmt_attr_type_custom", "type": "TINYINT(1)", "null": false }, "suppliermgmt_attr_type_repeatable": { "name": "suppliermgmt_attr_type_repeatable", "type": "TINYINT(1)", "null": false }, "suppliermgmt_attr_type_required": { "description": "Every item must have this attribute type if set to true.", "name": "suppliermgmt_attr_type_required", "type": "TINYINT(1)", "null": false }, "suppliermgmt_attr_type_pattern": { "description": "This is a regex validation pattern.", "name": "suppliermgmt_attr_type_pattern", "type": "VARCHAR(255)", "null": false } } }, "suppliermgmt_attr_type_l11n": { "name": "suppliermgmt_attr_type_l11n", "fields": { "suppliermgmt_attr_type_l11n_id": { "name": "suppliermgmt_attr_type_l11n_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_attr_type_l11n_title": { "name": "suppliermgmt_attr_type_l11n_title", "type": "VARCHAR(255)", "null": false }, "suppliermgmt_attr_type_l11n_type": { "name": "suppliermgmt_attr_type_l11n_type", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_attr_type", "foreignKey": "suppliermgmt_attr_type_id" }, "suppliermgmt_attr_type_l11n_lang": { "name": "suppliermgmt_attr_type_l11n_lang", "type": "VARCHAR(2)", "null": false, "foreignTable": "language", "foreignKey": "language_639_1" } } }, "suppliermgmt_attr_value": { "name": "suppliermgmt_attr_value", "fields": { "suppliermgmt_attr_value_id": { "name": "suppliermgmt_attr_value_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_attr_value_default": { "name": "suppliermgmt_attr_value_default", "type": "TINYINT(1)", "null": false }, "suppliermgmt_attr_value_valueStr": { "name": "suppliermgmt_attr_value_valueStr", "type": "VARCHAR(255)", "null": true, "default": null }, "suppliermgmt_attr_value_valueInt": { "name": "suppliermgmt_attr_value_valueInt", "type": "INT(11)", "null": true, "default": null }, "suppliermgmt_attr_value_valueDec": { "name": "suppliermgmt_attr_value_valueDec", "type": "DECIMAL(19,5)", "null": true, "default": null }, "suppliermgmt_attr_value_valueDat": { "name": "suppliermgmt_attr_value_valueDat", "type": "DATETIME", "null": true, "default": null }, "suppliermgmt_attr_value_unit": { "name": "suppliermgmt_attr_value_unit", "type": "VARCHAR(255)", "null": false }, "suppliermgmt_attr_value_deptype": { "name": "suppliermgmt_attr_value_deptype", "type": "INT(11)", "null": true, "default": null, "foreignTable": "suppliermgmt_attr_type", "foreignKey": "suppliermgmt_attr_type_id" }, "suppliermgmt_attr_value_depvalue": { "name": "suppliermgmt_attr_value_depvalue", "type": "INT(11)", "null": true, "default": null, "foreignTable": "suppliermgmt_attr_value", "foreignKey": "suppliermgmt_attr_value_id" } } }, "suppliermgmt_attr_value_l11n": { "name": "suppliermgmt_attr_value_l11n", "fields": { "suppliermgmt_attr_value_l11n_id": { "name": "suppliermgmt_attr_value_l11n_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_attr_value_l11n_title": { "name": "suppliermgmt_attr_value_l11n_title", "type": "VARCHAR(255)", "null": false }, "suppliermgmt_attr_value_l11n_value": { "name": "suppliermgmt_attr_value_l11n_value", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_attr_value", "foreignKey": "suppliermgmt_attr_value_id" }, "suppliermgmt_attr_value_l11n_lang": { "name": "suppliermgmt_attr_value_l11n_lang", "type": "VARCHAR(2)", "null": false, "foreignTable": "language", "foreignKey": "language_639_1" } } }, "suppliermgmt_supplier_attr_default": { "name": "suppliermgmt_supplier_attr_default", "fields": { "suppliermgmt_supplier_attr_default_id": { "name": "suppliermgmt_supplier_attr_default_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_attr_default_type": { "name": "suppliermgmt_supplier_attr_default_type", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_attr_type", "foreignKey": "suppliermgmt_attr_type_id" }, "suppliermgmt_supplier_attr_default_value": { "name": "suppliermgmt_supplier_attr_default_value", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_attr_value", "foreignKey": "suppliermgmt_attr_value_id" } } }, "suppliermgmt_supplier_attr": { "name": "suppliermgmt_supplier_attr", "fields": { "suppliermgmt_supplier_attr_id": { "name": "suppliermgmt_supplier_attr_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_attr_supplier": { "name": "suppliermgmt_supplier_attr_supplier", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_supplier", "foreignKey": "suppliermgmt_supplier_id" }, "suppliermgmt_supplier_attr_type": { "name": "suppliermgmt_supplier_attr_type", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_attr_type", "foreignKey": "suppliermgmt_attr_type_id" }, "suppliermgmt_supplier_attr_value": { "name": "suppliermgmt_supplier_attr_value", "type": "INT(11)", "null": true, "default": null, "foreignTable": "suppliermgmt_attr_value", "foreignKey": "suppliermgmt_attr_value_id" } } }, "suppliermgmt_supplier_account": { "name": "suppliermgmt_supplier_account", "fields": { "suppliermgmt_supplier_account_id": { "name": "suppliermgmt_supplier_account_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_account_account": { "name": "suppliermgmt_supplier_account_account", "type": "VARCHAR(50)", "null": false }, "suppliermgmt_supplier_account_supplier": { "name": "suppliermgmt_supplier_account_supplier", "type": "INT(11)", "null": false, "foreignTable": "suppliermgmt_supplier", "foreignKey": "suppliermgmt_supplier_id" } } }, "suppliermgmt_supplier_media": { "name": "suppliermgmt_supplier_media", "fields": { "suppliermgmt_supplier_media_id": { "name": "suppliermgmt_supplier_media_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_media_dst": { "name": "suppliermgmt_supplier_media_dst", "type": "INT", "null": false, "foreignTable": "media", "foreignKey": "media_id" }, "suppliermgmt_supplier_media_src": { "name": "suppliermgmt_supplier_media_src", "type": "INT", "null": false, "foreignTable": "suppliermgmt_supplier", "foreignKey": "suppliermgmt_supplier_id" } } }, "suppliermgmt_supplier_note": { "name": "suppliermgmt_supplier_note", "fields": { "suppliermgmt_supplier_note_id": { "name": "suppliermgmt_supplier_note_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "suppliermgmt_supplier_note_dst": { "name": "suppliermgmt_supplier_note_dst", "type": "INT", "null": false, "foreignTable": "editor_doc", "foreignKey": "editor_doc_id" }, "suppliermgmt_supplier_note_src": { "name": "suppliermgmt_supplier_note_src", "type": "INT", "null": false, "foreignTable": "suppliermgmt_supplier", "foreignKey": "suppliermgmt_supplier_id" } } } }