{ "attribute_attr_type": { "name": "attribute_attr_type", "fields": { "attribute_attr_type_id": { "name": "attribute_attr_type_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "attribute_attr_type_model": { "name": "attribute_attr_type_model", "type": "INT", "null": false }, "attribute_attr_type_name": { "name": "attribute_attr_type_name", "type": "VARCHAR(255)", "null": false, "unique": true }, "attribute_attr_type_datatype": { "name": "attribute_attr_type_datatype", "type": "INT(11)", "null": false }, "attribute_attr_type_fields": { "name": "attribute_attr_type_fields", "type": "INT(11)", "null": false }, "attribute_attr_type_custom": { "name": "attribute_attr_type_custom", "type": "TINYINT(1)", "null": false }, "attribute_attr_type_repeatable": { "name": "attribute_attr_type_repeatable", "type": "TINYINT(1)", "null": false }, "attribute_attr_type_internal": { "name": "attribute_attr_type_internal", "type": "TINYINT(1)", "null": false }, "attribute_attr_type_required": { "comment": "Every element must have this attribute type if set to true.", "name": "attribute_attr_type_required", "type": "TINYINT(1)", "null": false }, "attribute_attr_type_pattern": { "comment": "This is a regex validation pattern.", "name": "attribute_attr_type_pattern", "type": "VARCHAR(255)", "null": false } } }, "attribute_attr_type_l11n": { "name": "attribute_attr_type_l11n", "fields": { "attribute_attr_type_l11n_id": { "name": "attribute_attr_type_l11n_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "attribute_attr_type_l11n_title": { "name": "attribute_attr_type_l11n_title", "type": "VARCHAR(255)", "null": false }, "attribute_attr_type_l11n_type": { "name": "attribute_attr_type_l11n_type", "type": "INT(11)", "null": false, "foreignTable": "attribute_attr_type", "foreignKey": "attribute_attr_type_id" }, "attribute_attr_type_l11n_lang": { "name": "attribute_attr_type_l11n_lang", "type": "VARCHAR(2)", "null": false, "foreignTable": "language", "foreignKey": "language_639_1" } } }, "attribute_attr_value": { "name": "attribute_attr_value", "fields": { "attribute_attr_value_id": { "name": "attribute_attr_value_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "attribute_attr_value_default": { "name": "attribute_attr_value_default", "type": "TINYINT(1)", "null": false }, "attribute_attr_value_valueStr": { "name": "attribute_attr_value_valueStr", "type": "VARCHAR(255)", "null": true, "default": null }, "attribute_attr_value_valueInt": { "name": "attribute_attr_value_valueInt", "type": "INT(11)", "null": true, "default": null }, "attribute_attr_value_valueDec": { "name": "attribute_attr_value_valueDec", "type": "DECIMAL(19,5)", "null": true, "default": null }, "attribute_attr_value_valueDat": { "name": "attribute_attr_value_valueDat", "type": "DATETIME", "null": true, "default": null }, "attribute_attr_value_unit": { "name": "attribute_attr_value_unit", "type": "VARCHAR(255)", "null": false }, "attribute_attr_value_deptype": { "name": "attribute_attr_value_deptype", "type": "INT(11)", "null": true, "default": null, "foreignTable": "attribute_attr_type", "foreignKey": "attribute_attr_type_id" }, "attribute_attr_value_depvalue": { "name": "attribute_attr_value_depvalue", "type": "INT(11)", "null": true, "default": null, "foreignTable": "attribute_attr_value", "foreignKey": "attribute_attr_value_id" } } }, "attribute_attr_value_l11n": { "name": "attribute_attr_value_l11n", "fields": { "attribute_attr_value_l11n_id": { "name": "attribute_attr_value_l11n_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "attribute_attr_value_l11n_title": { "name": "attribute_attr_value_l11n_title", "type": "VARCHAR(255)", "null": false }, "attribute_attr_value_l11n_value": { "name": "attribute_attr_value_l11n_value", "type": "INT(11)", "null": false, "foreignTable": "attribute_attr_value", "foreignKey": "attribute_attr_value_id" }, "attribute_attr_value_l11n_lang": { "name": "attribute_attr_value_l11n_lang", "type": "VARCHAR(2)", "null": false, "foreignTable": "language", "foreignKey": "language_639_1" } } }, "attribute_attr_default": { "name": "attribute_attr_default", "fields": { "attribute_attr_default_id": { "name": "attribute_attr_default_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "attribute_attr_default_type": { "name": "attribute_attr_default_type", "type": "INT(11)", "null": false, "foreignTable": "attribute_attr_type", "foreignKey": "attribute_attr_type_id" }, "attribute_attr_default_value": { "name": "attribute_attr_default_value", "type": "INT(11)", "null": false, "foreignTable": "attribute_attr_value", "foreignKey": "attribute_attr_value_id" } } }, "attribute_attr": { "name": "attribute_attr", "fields": { "attribute_attr_id": { "name": "attribute_attr_id", "type": "INT", "null": false, "primary": true, "autoincrement": true }, "attribute_attr_ref": { "name": "attribute_attr_ref", "type": "INT(11)", "null": false }, "attribute_attr_type": { "name": "attribute_attr_type", "type": "INT(11)", "null": false, "foreignTable": "attribute_attr_type", "foreignKey": "attribute_attr_type_id" }, "attribute_attr_value": { "name": "attribute_attr_value", "type": "INT(11)", "null": true, "default": null, "foreignTable": "attribute_attr_value", "foreignKey": "attribute_attr_value_id" } } } }