{
    "rodrckun_core_rodriguezco": {
        "global_branch_office": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "license_server_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "global_system_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "enterprise": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "branch_office": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "global_countries_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "global_cities_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "exp": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "warranty_exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "technical_support_exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "cloud_exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "bolivian_invoice": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "global_branch_office.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "global_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "value",
                    "columns": [
                        "value"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_chat": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "global_chat_rooms_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sender_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "message_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "text"
                },
                "content": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "reply_to_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "attachment_url": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "system_citation_type": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "system_citation_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "is_edited": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "deleted_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "fk_chat_reply",
                    "columns": [
                        "reply_to_id"
                    ],
                    "unique": false
                },
                {
                    "name": "fk_chat_room",
                    "columns": [
                        "global_chat_rooms_id"
                    ],
                    "unique": false
                },
                {
                    "name": "fk_chat_sender",
                    "columns": [
                        "sender_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_chat_message_reads": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "global_chat_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "read_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "uq_chat_read",
                    "columns": [
                        "global_chat_id",
                        "users_sid"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "global_chat_room_members": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "global_chat_rooms_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "role": {
                    "type": "string",
                    "notnull": true,
                    "default": "member"
                },
                "is_muted": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "joined_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "fk_member_users_sid",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                },
                {
                    "name": "uq_room_user",
                    "columns": [
                        "global_chat_rooms_id",
                        "users_sid"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "global_chat_rooms": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "room_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "direct"
                },
                "name": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "avatar_url": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "created_by_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "deleted_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_cities": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true,
                    "unsigned": true
                },
                "name": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "state_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "unsigned": true
                },
                "state_code": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "unsigned": true
                },
                "country_code": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": null
                },
                "latitude": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 8,
                    "notnull": true,
                    "default": null
                },
                "longitude": {
                    "type": "decimal",
                    "precision": 11,
                    "scale": 8,
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "2014-01-01 01:01:01"
                },
                "updated_on": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "flag": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "1"
                },
                "wikiDataId": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "cities_test_ibfk_1",
                    "columns": [
                        "state_id"
                    ],
                    "unique": false
                },
                {
                    "name": "cities_test_ibfk_2",
                    "columns": [
                        "country_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_configuration": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "enable_register": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "area_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "cargo_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "global_configuration.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "global_countries": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true,
                    "unsigned": true
                },
                "name": {
                    "type": "string",
                    "length": 100,
                    "notnull": true,
                    "default": null
                },
                "iso3": {
                    "type": "string",
                    "length": 3,
                    "notnull": false,
                    "default": null
                },
                "iso2": {
                    "type": "string",
                    "length": 2,
                    "notnull": false,
                    "default": null
                },
                "phonecode": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "capital": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "currency": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "native": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "emoji": {
                    "type": "string",
                    "length": 191,
                    "notnull": false,
                    "default": null
                },
                "emojiU": {
                    "type": "string",
                    "length": 191,
                    "notnull": false,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "flag": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "1"
                },
                "wikiDataId": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_currency": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "currency": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 15,
                    "notnull": true,
                    "default": null
                },
                "codigoClasificador": {
                    "type": "smallint",
                    "notnull": true,
                    "default": "1"
                },
                "usd_dollar": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "global_countries_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_database_backups": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_storage_provider_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "file_name": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "file_size_bytes": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "download_link": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "backup_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "manual"
                },
                "job_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "completed"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "fk_backup_storage_id",
                    "columns": [
                        "global_storage_provider_id"
                    ],
                    "unique": false
                },
                {
                    "name": "fk_backup_users_sid",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_dosage": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "autorizacion": {
                    "type": "string",
                    "length": 75,
                    "notnull": true,
                    "default": null
                },
                "inicio": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "limite": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "llave": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "rubro": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "leyenda": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_exchange_rate": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "exchange_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "global_currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "exchange": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_history": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "ss": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "sss": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_holidays": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "holiday_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "holiday_name": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_license_server": {
            "columns": {
                "id": {
                    "type": "smallint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "fullname": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 75,
                    "notnull": true,
                    "default": null
                },
                "license": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "systems_enabled": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "how_many": {
                    "type": "string",
                    "length": 10,
                    "notnull": true,
                    "default": null
                },
                "expiration_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "warranty_exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "technical_support_exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "cloud_exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_notifications": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sender_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "title": {
                    "type": "string",
                    "length": 150,
                    "notnull": true,
                    "default": null
                },
                "message": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "icon": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "style_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "info"
                },
                "action_uri": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "is_read": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "read_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_notif_user_read",
                    "columns": [
                        "users_sid",
                        "is_read"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_person": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "phone_number": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "intern": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "cargo_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "area_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_rol": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_system_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "rol_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "rol_description": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_rol_perm": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_rol_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "module_uri": {
                    "type": "string",
                    "length": 100,
                    "notnull": true,
                    "default": null
                },
                "local_uri": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_storage_provider": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provider_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "email_account": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "client_id": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "client_secret": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "access_token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "refresh_token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "token_expires_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "fk_storage_users_sid",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_system": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "system": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 30,
                    "notnull": true,
                    "default": null
                },
                "exp": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_system_behavior": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "behavior": {
                    "type": "string",
                    "notnull": true,
                    "default": "core"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_ufv": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "ufv": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "date_ufv": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_user_presence": {
            "columns": {
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "is_online": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "last_seen": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "current_device": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "custom_status_msg": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "users_sid"
            ],
            "indexes": [
                {
                    "name": "idx_presence_online",
                    "columns": [
                        "is_online"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "global_users": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "profile_picture": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "password": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "remember_token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "ttl": {
                    "type": "integer",
                    "notnull": true,
                    "default": "172800"
                },
                "wrong_login_attempt": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "date_wrong_login_attempt": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "client_ip": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "email",
                    "columns": [
                        "email"
                    ],
                    "unique": true
                },
                {
                    "name": "sid",
                    "columns": [
                        "sid"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "global_users_branches_allowed": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "license_server_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_users_passwords": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "password": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "global_users_rol": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_rol_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "migrations": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true,
                    "unsigned": true
                },
                "migration": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "batch": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "websockets_statistics_entries": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true,
                    "unsigned": true
                },
                "app_id": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "peak_connection_count": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "websocket_message_count": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "api_message_count": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        }
    },
    "rodrckun_core_sivir_rodriguezco": {
        "cache": {
            "columns": {
                "key": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "text",
                    "notnull": true,
                    "default": null
                },
                "expiration": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "key"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "cache_locks": {
            "columns": {
                "key": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "owner": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "expiration": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "key"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "core_sivir_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_sivir_currency": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "currency": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 15,
                    "notnull": true,
                    "default": null
                },
                "codigoClasificador": {
                    "type": "smallint",
                    "notnull": true,
                    "default": "1"
                },
                "usd_dollar": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "global_countries_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_sivir_dosage": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "autorizacion": {
                    "type": "string",
                    "length": 75,
                    "notnull": true,
                    "default": null
                },
                "inicio": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "limite": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "llave": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "rubro": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "leyenda": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_sivir_exchange_rate": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "exchange_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "global_currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "exchange": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 4,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_sivir_person": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "phone_number": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "intern": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "cargo_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "area_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_sivir_users": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "profile_picture": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "password": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "remember_token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "ttl": {
                    "type": "integer",
                    "notnull": true,
                    "default": "172800"
                },
                "wrong_login_attempt": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "date_wrong_login_attempt": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "client_ip": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "customers_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "catalogs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "employee_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "catalogs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "enterprise_employee": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "documento": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "email": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "phones": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "address": {
                    "type": "string",
                    "length": 512,
                    "notnull": false,
                    "default": null
                },
                "references": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "photo": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "failed_jobs": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true,
                    "unsigned": true
                },
                "uuid": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "connection": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "queue": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "payload": {
                    "type": "text",
                    "notnull": true,
                    "default": null
                },
                "exception": {
                    "type": "text",
                    "notnull": true,
                    "default": null
                },
                "failed_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "failed_jobs_uuid_unique",
                    "columns": [
                        "uuid"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "hotel_booking": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "room_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "person_id": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "advance": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "advance_payment_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "customer_full_name": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "customer_email": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "customer_phone": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "booking_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "start_time": {
                    "type": "time",
                    "notnull": true,
                    "default": null
                },
                "garage_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "end_time": {
                    "type": "time",
                    "notnull": false,
                    "default": null
                },
                "total_hours": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "room_status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "total": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_hotel_booking_branch_customer",
                    "columns": [
                        "global_branch_office_id",
                        "customer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_hotel_booking_branch_room_date",
                    "columns": [
                        "global_branch_office_id",
                        "room_id",
                        "booking_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_hotel_booking_branch_sellpoint",
                    "columns": [
                        "global_branch_office_id",
                        "sellpoint_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "hotel_room": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "roomt_type_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "room_detail": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_hotel_room_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_hotel_room_branch_type",
                    "columns": [
                        "global_branch_office_id",
                        "roomt_type_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "jobs": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true,
                    "unsigned": true
                },
                "queue": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "payload": {
                    "type": "text",
                    "notnull": true,
                    "default": null
                },
                "attempts": {
                    "type": "boolean",
                    "notnull": true,
                    "default": null,
                    "unsigned": true
                },
                "reserved_at": {
                    "type": "integer",
                    "notnull": false,
                    "default": null,
                    "unsigned": true
                },
                "available_at": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "unsigned": true
                },
                "created_at": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "unsigned": true
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "jobs_queue_index",
                    "columns": [
                        "queue"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "lending_tools_guarantee_docs": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lending_head_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "has_id_copy": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "has_electricity_bill": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "has_water_bill": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "other_docs": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_unique_lending_doc",
                    "columns": [
                        "lending_head_relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "lending_tools_head": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "correlative_number": {
                    "type": "integer",
                    "notnull": true,
                    "default": "0"
                },
                "customer_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "delivery_date": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "planned_return_date": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "actual_return_date": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "total_days": {
                    "type": "integer",
                    "notnull": false,
                    "default": "0"
                },
                "holiday_sunday_count": {
                    "type": "integer",
                    "notnull": false,
                    "default": "0"
                },
                "effective_working_days": {
                    "type": "integer",
                    "notnull": false,
                    "default": "0"
                },
                "subtotal_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "advance_deposit": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "advance_payment_way_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "guarantee_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "guarantee_payment_way_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "discount_guarantee": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "transport_delivery_paid_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "transport_delivery_paid_payment_way_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "transport_return_paid_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "transport_return_payment_way_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "transport_to_collect_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "transport_to_collect_payment_way_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "fines_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "balance_due": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "return_payment_way_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "is_trusted_customer": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "loan_detail_status": {
                    "type": "string",
                    "notnull": false,
                    "default": "Working"
                },
                "loan_payment_details": {
                    "type": "string",
                    "notnull": true,
                    "default": "Pending"
                },
                "observations": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "address": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "latitude": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 8,
                    "notnull": false,
                    "default": null
                },
                "longitude": {
                    "type": "decimal",
                    "precision": 11,
                    "scale": 8,
                    "notnull": false,
                    "default": null
                },
                "products_transfer_between_warehouses_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_lending_customer",
                    "columns": [
                        "customer_relative"
                    ],
                    "unique": false
                },
                {
                    "name": "lending_tools_head_products_transfer_between_warehouses_id",
                    "columns": [
                        "products_transfer_between_warehouses_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "lending_tools_items": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lending_head_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "quantity": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "cost_per_day": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "replacement_cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "initial_condition_photos": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "final_condition_photos": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_lending_head",
                    "columns": [
                        "lending_head_relative"
                    ],
                    "unique": false
                },
                {
                    "name": "product_lot_id",
                    "columns": [
                        "product_lot_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "lending_tools_rounding": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lending_head_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "rounded_amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "rounded_reason": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "users_sid.lending_tools_rounding",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                },
                {
                    "name": "xlending_head_relative",
                    "columns": [
                        "lending_head_relative"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "lending_tools_sell_point_income": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lending_head_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_point_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "date_movement": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "income_reason": {
                    "type": "string",
                    "notnull": true,
                    "default": "RENTAL"
                },
                "payment_description": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_lending_income_head",
                    "columns": [
                        "lending_head_relative"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_lending_income_sellpoint",
                    "columns": [
                        "sell_point_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "portfolio_customers": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "customer_type_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 75,
                    "notnull": true,
                    "default": null
                },
                "middle_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "document_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "document_number": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "customer_complemento": {
                    "type": "string",
                    "length": 5,
                    "notnull": false,
                    "default": null
                },
                "gender_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "birthday": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "social_media": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "phones": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "address": {
                    "type": "string",
                    "length": 512,
                    "notnull": false,
                    "default": null
                },
                "references": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "photo": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_adjustment_by_inflation": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "cost_or_sellprice": {
                    "type": "string",
                    "notnull": true,
                    "default": "SP"
                },
                "adjustment_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "%"
                },
                "adjustment": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "rounding": {
                    "type": "boolean",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_bolivian_invoice": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "economic_activity_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "ley_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "leyenda": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "codigo_modalidad": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "codigo_sucursal": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "tipo_factura_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "page_format": {
                    "type": "string",
                    "notnull": true,
                    "default": "A4"
                },
                "include_logo": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sivir_enterprise.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_cafc_code": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "cafc_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "codigo_modalidad": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "tipo_factura_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "cafc_from": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "cafc_to": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sivir_cafc_code.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_calendar_event": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "title": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "event_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "OTHER"
                },
                "start_datetime": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "end_datetime": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "all_day": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "event_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "P"
                },
                "location": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "priority": {
                    "type": "boolean",
                    "notnull": false,
                    "default": "3"
                },
                "reminder_minutes_before": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "reminder_channel": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_calendar_event_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_calendar_event_start",
                    "columns": [
                        "start_datetime"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_calendar_event_status",
                    "columns": [
                        "event_status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_calendar_event_users",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "catalogs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "orden": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "fob": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_catalog_code",
                    "columns": [
                        "catalog_code"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_global_branch_office_id",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_users_sid",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_configuration": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "decimals": {
                    "type": "smallint",
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "zofra": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "inventory_method": {
                    "type": "string",
                    "notnull": true,
                    "default": "UEPS"
                },
                "costs_method": {
                    "type": "string",
                    "notnull": true,
                    "default": "PPP"
                },
                "iva": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "send_invoice_automatically": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "round_price": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "internal_control": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "show_due_date": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "supermarket_mode": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "adjust_inventory_on_sell": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "show_supplier_vendor_on_sell": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "apply_discount_on_all_prices": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "free_sell_price": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "configuration.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_coupons": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "coupon_group": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity_generated": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "amount": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "expiration_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "coupon_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "V"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_coupons_branch_group",
                    "columns": [
                        "global_branch_office_id",
                        "coupon_group"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_coupons_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "coupon_status",
                        "status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_cuis": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_point_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "codigo_punto_venta": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "nombre_punto_venta": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "cuis": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "cuis_expiration_datetime": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "message": {
                    "type": "string",
                    "length": 150,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sivir_cuis.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_customer_on_service": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_customer_visits": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 36,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 36,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 36,
                    "notnull": true,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 36,
                    "notnull": true,
                    "default": null
                },
                "visit_datetime": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "visit_status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "latitude": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 8,
                    "notnull": false,
                    "default": null
                },
                "longitude": {
                    "type": "decimal",
                    "precision": 11,
                    "scale": 8,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_branch_office",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_customer_id",
                    "columns": [
                        "customer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_users_sid",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_visit_reporting",
                    "columns": [
                        "global_branch_office_id",
                        "visit_datetime",
                        "visit_status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_deliver_input": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "deliver_reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "total_items": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "date_delivered": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_deliver_input_branch_date",
                    "columns": [
                        "global_branch_office_id",
                        "date_delivered"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_deliver_input_branch_person",
                    "columns": [
                        "global_branch_office_id",
                        "person_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_deliver_items": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "deliver_input_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_fullname": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "observations": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "numeroSerie": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "numeroImei": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_deliver_items_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_deliver_items_input",
                    "columns": [
                        "deliver_input_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_delivery_items": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "delivery_order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_sold_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "qty_to_deliver": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "qty_accepted": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "qty_damaged_in_transit": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "qty_rejected_by_client": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "incident_reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "evidence_photo_url": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_del_items_order",
                    "columns": [
                        "delivery_order_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_del_items_sell_sold",
                    "columns": [
                        "sell_sold_relative"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_delivery_order": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "route_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "address_text": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "latitude": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 8,
                    "notnull": false,
                    "default": null
                },
                "longitude": {
                    "type": "decimal",
                    "precision": 11,
                    "scale": 8,
                    "notnull": false,
                    "default": null
                },
                "delivery_instructions": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "strict_recipient": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "shipping_cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "payment_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "payment_detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "attempt_number": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "weather_sensitive": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "delivery_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "PENDING"
                },
                "absence_action": {
                    "type": "string",
                    "notnull": false,
                    "default": null
                },
                "recipient_name_actual": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "recipient_signature_url": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "delivery_photo_url": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_order_customer",
                    "columns": [
                        "customer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_order_route",
                    "columns": [
                        "route_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_delivery_order_sales": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "delivery_order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_order_sales_order",
                    "columns": [
                        "delivery_order_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_order_sales_sell",
                    "columns": [
                        "sell_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_delivery_route": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "driver_person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "vehicle_details": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "route_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "PENDING"
                },
                "incident_notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "departure_datetime": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "return_datetime": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_route_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "route_status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_delivery_route_helpers": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "route_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "helper_person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "helper_role": {
                    "type": "string",
                    "notnull": true,
                    "default": "MANUAL_LOADER"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_helpers_route",
                    "columns": [
                        "route_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_enterprise": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "fullname": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "owner": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "address": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "phones": {
                    "type": "string",
                    "length": 150,
                    "notnull": true,
                    "default": null
                },
                "country": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "city": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "photo": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sivir_enterprise.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_gift_card": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "gc_group": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity_generated": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "gc_serial": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "expiration_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "balance": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "gc_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "V"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_gift_card_branch_group",
                    "columns": [
                        "global_branch_office_id",
                        "gc_group"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_gift_card_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "gc_status",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_gift_card.gc_serial",
                    "columns": [
                        "gc_serial"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_hotel_room_prices": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "room_code": {
                    "type": "string",
                    "length": 25,
                    "notnull": true,
                    "default": "ROOM001"
                },
                "tipo_habitacion_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sincode_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "sin_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "room_capacity": {
                    "type": "smallint",
                    "notnull": true,
                    "default": "1"
                },
                "room_price_overnight": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "room_price_per_extra_person": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "room_price_per_extra_kid": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_hotel_rules": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "apply_half_dat": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "halfday_after_hour": {
                    "type": "time",
                    "notnull": false,
                    "default": null
                },
                "halfday_before_hour": {
                    "type": "time",
                    "notnull": false,
                    "default": null
                },
                "complete_day_after_hour": {
                    "type": "time",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_inventory_movement_partial": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "pending_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "iet": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "movement_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "kardex_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_partial_branch_product_date",
                    "columns": [
                        "global_branch_office_id",
                        "product_id",
                        "movement_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_partial_pending",
                    "columns": [
                        "pending_relative"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_inventory_movement_pending": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "iet": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "source_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "source_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "source_detail_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity_ordered": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "quantity_done": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "quantity_pending": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_pending_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id",
                        "warehouse_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_pending_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "iet",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_pending_source",
                    "columns": [
                        "source_kind",
                        "source_id",
                        "status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_mass_mailing": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "event_number": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "invoices": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "codigo_punto_venta": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "zofra": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "tipo_emision": {
                    "type": "smallint",
                    "notnull": false,
                    "default": "1"
                },
                "codigoDescripcion": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "codigoEstado": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "codigoRecepcion": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_notifications": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "notification_flags": {
                    "type": "bigint",
                    "notnull": true,
                    "default": "0",
                    "unsigned": true
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "global_branch_office_id",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_optical_medical_history": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "motivo_consulta": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "antecedentes_personales": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "antecedentes_familiares": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "av_od": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "av_oi": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "cca_od": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "cca_oi": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "lampara_hendidura": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "fondo_ojo_od": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "fondo_ojo_oi": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "motilidad_ocular": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "pio_od": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "pio_oi": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "refraccion_anterior": {
                    "type": "json",
                    "notnull": false,
                    "default": null
                },
                "autorefractometria": {
                    "type": "json",
                    "notnull": false,
                    "default": null
                },
                "diagnosticos": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "tratamiento": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "fecha_control": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "attachments": {
                    "type": "json",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_med_history_customer",
                    "columns": [
                        "customer_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_optical_work_order_materials": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "optical_work_order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "material_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "CONSUMABLE"
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "1.00000"
                },
                "waste_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_opt_mat_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_opt_mat_order",
                    "columns": [
                        "optical_work_order_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_opt_mat_prod",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_optical_work_order_rx": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "optical_work_order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "distance_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "eye": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "sphere": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "cylinder": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "axis": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "dnp": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "dp": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "height": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "add_value": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "prism": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "base": {
                    "type": "string",
                    "length": 20,
                    "notnull": false,
                    "default": null
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_rx_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_rx_order",
                    "columns": [
                        "optical_work_order_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_optical_work_orders": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "work_order_number": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "beneficiary_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "phone": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "total_cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "down_payment": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "down_payment_payment_type": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "lens_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "MONOFOCAL"
                },
                "is_lens_only": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "lens_material_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "lens_brand": {
                    "type": "string",
                    "length": 120,
                    "notnull": false,
                    "default": null
                },
                "lens_color": {
                    "type": "string",
                    "length": 120,
                    "notnull": false,
                    "default": null
                },
                "lens_treatment": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "frame_owner": {
                    "type": "string",
                    "notnull": true,
                    "default": "SHOP"
                },
                "frame_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "frame_description": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "frame_color": {
                    "type": "string",
                    "length": 120,
                    "notnull": false,
                    "default": null
                },
                "optometry_history_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "optometry_notes": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "order_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "PENDING"
                },
                "lab_notes": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "delivery_date": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "received_by": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "waste_notes": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "observations": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_optical_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_optical_customer",
                    "columns": [
                        "customer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_optical_history",
                    "columns": [
                        "optometry_history_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_order": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "order_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "order_number": {
                    "type": "smallint",
                    "notnull": true,
                    "default": null
                },
                "order_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "M"
                },
                "order_detail": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "discount_all_products": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "total": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "order_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "P"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_order_branch_date",
                    "columns": [
                        "global_branch_office_id",
                        "order_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_order_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "order_status"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_order_sold": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "order_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_fullname": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "with_ingredients": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "without_ingredients": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "total_price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "discount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_order_sold_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_order_sold_order",
                    "columns": [
                        "order_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_payment_anyway": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "S"
                },
                "identificator": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_data": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "payment_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "bank_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "comments": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_payment_way_branch_payment",
                    "columns": [
                        "global_branch_office_id",
                        "payment_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_payment_way_branch_sell",
                    "columns": [
                        "global_branch_office_id",
                        "identificator"
                    ],
                    "unique": false
                },
                {
                    "name": "payment_anyway_bank_id",
                    "columns": [
                        "bank_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_payment_way": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "multiple": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "payments_related": {
                    "type": "string",
                    "length": 100,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_production_bom_materials": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "bom_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sequence": {
                    "type": "integer",
                    "notnull": true,
                    "default": "10"
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "waste_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "is_optional": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_bommat_bom",
                    "columns": [
                        "bom_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_bommat_bom_seq",
                    "columns": [
                        "bom_id",
                        "sequence"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_bommat_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_bommat_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_boms": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "bom_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "bom_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "version": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "base_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "1.00000"
                },
                "expected_waste_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "characteristics": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "technical_details": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "attachments": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "is_default": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "enabled": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_bom_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_bom_default",
                    "columns": [
                        "product_id",
                        "is_default",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_bom_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_bom_product_version",
                    "columns": [
                        "product_id",
                        "version"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_order_operation_consumptions": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "order_operation_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "quantity_used": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "consumed_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_prod_cons_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_cons_date",
                    "columns": [
                        "global_branch_office_id",
                        "consumed_at"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_cons_lot",
                    "columns": [
                        "product_lot_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_cons_op",
                    "columns": [
                        "order_operation_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_cons_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_order_operation_materials": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "order_operation_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sequence": {
                    "type": "integer",
                    "notnull": true,
                    "default": "10"
                },
                "quantity_planned": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "consumption_basis": {
                    "type": "string",
                    "notnull": true,
                    "default": "PER_UNIT"
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_prod_opmat_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_opmat_op",
                    "columns": [
                        "order_operation_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_opmat_op_seq",
                    "columns": [
                        "order_operation_id",
                        "sequence"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_opmat_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_order_operations": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "workflow_operation_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "operation_no": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "sequence": {
                    "type": "integer",
                    "notnull": true,
                    "default": "10"
                },
                "operation_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "section_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "execution_mode": {
                    "type": "string",
                    "notnull": true,
                    "default": "INTERNAL"
                },
                "external_provider_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "executed_by_person_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "checked_by_person_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "work_instructions": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "quality_instructions": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "std_setup_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "std_run_time_per_unit_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "std_run_time_per_lot_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "std_queue_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "std_wait_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "std_move_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "planned_qty_in": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "planned_qty_out": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "actual_qty_in": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "actual_good_qty_out": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "actual_scrap_qty": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "scrap_action": {
                    "type": "string",
                    "notnull": false,
                    "default": "SCRAP"
                },
                "allow_rework": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "op_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "PENDING"
                },
                "scheduled_start_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "scheduled_end_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "started_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "ended_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_prod_op_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_check_person",
                    "columns": [
                        "checked_by_person_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_exec_mode",
                    "columns": [
                        "order_id",
                        "execution_mode"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_exec_person",
                    "columns": [
                        "executed_by_person_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_order",
                    "columns": [
                        "order_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_order_no",
                    "columns": [
                        "order_id",
                        "operation_no"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_order_seq",
                    "columns": [
                        "order_id",
                        "sequence"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_provider",
                    "columns": [
                        "external_provider_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_section",
                    "columns": [
                        "section_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_op_status",
                    "columns": [
                        "order_id",
                        "op_status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_order_outputs": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "produced_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_prod_out_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_out_date",
                    "columns": [
                        "global_branch_office_id",
                        "produced_at"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_out_lot",
                    "columns": [
                        "product_lot_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_out_order",
                    "columns": [
                        "order_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_out_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_out_wh",
                    "columns": [
                        "warehouse_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_orders": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "order_code": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "order_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "PRODUCTION"
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "contract_number": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "bom_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "workflow_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "area_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "planned_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "1.00000"
                },
                "produced_good_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "produced_scrap_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "planned_output_lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "priority": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "3"
                },
                "order_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "DRAFT"
                },
                "scheduled_start_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "scheduled_end_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "released_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "started_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "finished_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "closed_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "notes": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_prod_order_area",
                    "columns": [
                        "area_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_bom",
                    "columns": [
                        "bom_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_dates",
                    "columns": [
                        "global_branch_office_id",
                        "scheduled_start_at",
                        "scheduled_end_at"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_person",
                    "columns": [
                        "person_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_status",
                    "columns": [
                        "global_branch_office_id",
                        "order_status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_wh",
                    "columns": [
                        "warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_prod_order_workflow",
                    "columns": [
                        "workflow_id"
                    ],
                    "unique": false
                },
                {
                    "name": "uk_prod_order_branch_code",
                    "columns": [
                        "global_branch_office_id",
                        "order_code"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_workflow_operation_materials": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "workflow_operation_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sequence": {
                    "type": "integer",
                    "notnull": true,
                    "default": "10"
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "consumption_basis": {
                    "type": "string",
                    "notnull": true,
                    "default": "PER_UNIT"
                },
                "consumption_mode": {
                    "type": "string",
                    "notnull": true,
                    "default": "BACKFLUSH"
                },
                "waste_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "notes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_wfopmat_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfopmat_operation",
                    "columns": [
                        "workflow_operation_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfopmat_operation_seq",
                    "columns": [
                        "workflow_operation_id",
                        "sequence"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfopmat_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_workflow_operations": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "workflow_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "operation_no": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "sequence": {
                    "type": "integer",
                    "notnull": true,
                    "default": "10"
                },
                "operation_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "section_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "machine_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "labor_type_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "work_instructions": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "quality_instructions": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "setup_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "run_time_per_unit_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "run_time_per_lot_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "queue_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "wait_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "move_time_minutes": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "expected_yield_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": "100.00000"
                },
                "expected_scrap_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "scrap_action": {
                    "type": "string",
                    "notnull": false,
                    "default": "SCRAP"
                },
                "allow_rework": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "output_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "SAME_PRODUCT"
                },
                "output_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "output_status_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "is_milestone": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "can_overlap_next": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_wfop_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_labor",
                    "columns": [
                        "labor_type_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_machine",
                    "columns": [
                        "machine_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_output_product",
                    "columns": [
                        "output_product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_section",
                    "columns": [
                        "section_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_workflow",
                    "columns": [
                        "workflow_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_workflow_opno",
                    "columns": [
                        "workflow_id",
                        "operation_no"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wfop_workflow_seq",
                    "columns": [
                        "workflow_id",
                        "sequence"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_production_workflows": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "workflow_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "workflow_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "version": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "area_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "description": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "notes": {
                    "type": "text",
                    "notnull": false,
                    "default": null
                },
                "expected_yield_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": "100.00000"
                },
                "expected_scrap_percent": {
                    "type": "decimal",
                    "precision": 8,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "is_default": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "enabled": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_wf_area",
                    "columns": [
                        "area_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wf_branch",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wf_default",
                    "columns": [
                        "product_id",
                        "is_default",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wf_person",
                    "columns": [
                        "person_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wf_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_wf_product_version",
                    "columns": [
                        "product_id",
                        "version"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_origin": {
                    "type": "string",
                    "notnull": true,
                    "default": "R"
                },
                "origin_related": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "PCV"
                },
                "fullname": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "psychotropic": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "medical_prescription": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "category_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "subcategory_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "brand_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "images": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "barcode": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "commission": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "commission_type": {
                    "type": "string",
                    "notnull": false,
                    "default": "%"
                },
                "year": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "period": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "volume": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "leaves": {
                    "type": "smallint",
                    "notnull": false,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "cost_average": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": true,
                    "default": "0.000000"
                },
                "last_purchase_cost": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": true,
                    "default": "0.000000"
                },
                "enabled": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_barcode",
                    "columns": [
                        "barcode"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_branch_category",
                    "columns": [
                        "global_branch_office_id",
                        "category_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status",
                        "enabled"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_code",
                    "columns": [
                        "code"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_assistant": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "assistant_id": {
                    "type": "smallint",
                    "notnull": true,
                    "default": null
                },
                "specification": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_products_catalog_in_bolivian": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "codigo_producto": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "codigo_actividad": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "producto": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_prod_catalog_bol_branch_codigo",
                    "columns": [
                        "global_branch_office_id",
                        "codigo_producto"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_code_approved": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sincode_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sin_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_code_approved_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "product_id",
                    "columns": [
                        "product_id"
                    ],
                    "unique": true
                },
                {
                    "name": "sivir_products_code_aapproved.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_deleted": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_products_discount": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "by_user": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "by_customer": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "groupby": {
                    "type": "string",
                    "notnull": true,
                    "default": "*"
                },
                "category_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "limited_time": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "starts_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "ends_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "kind": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "math": {
                    "type": "string",
                    "notnull": true,
                    "default": "%"
                },
                "discount": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "way_to_apply": {
                    "type": "string",
                    "notnull": true,
                    "default": "D"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "product_id",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_kardex": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "iet": {
                    "type": "string",
                    "notnull": true,
                    "default": "E"
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "stock_balance": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "source_kind": {
                    "type": "string",
                    "notnull": false,
                    "default": null
                },
                "source_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "document_number": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "party_name": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "operation_label": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "source_detail_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "unit_cost": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": true,
                    "default": "0.000000"
                },
                "total_value": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "warehouse_inventory_value_balance": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "inventory_value_balance": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "global_kardex.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                },
                {
                    "name": "idx_kardex_report_fast",
                    "columns": [
                        "product_id",
                        "warehouse_id",
                        "created_at"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_kardex_source",
                    "columns": [
                        "source_kind",
                        "source_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_kardex_branch_product_date",
                    "columns": [
                        "global_branch_office_id",
                        "product_id",
                        "created_at"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_kardex_product_date",
                    "columns": [
                        "product_id",
                        "created_at"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_lot": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "supplier_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "physical_location": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "supplier_code": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "initial_quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": "0.00"
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": "0.00"
                },
                "unit_cost": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": true,
                    "default": "0.000000"
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "total_price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "expires": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "expiration_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_peps_lookup",
                    "columns": [
                        "global_branch_office_id",
                        "product_id",
                        "created_at",
                        "quantity"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_lot_branch_product_wh",
                    "columns": [
                        "global_branch_office_id",
                        "product_id",
                        "warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_lot_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_lot_expiration",
                    "columns": [
                        "expires",
                        "expiration_date"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                },
                {
                    "name": "supplier_code",
                    "columns": [
                        "supplier_code"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_lot_history": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "physical_location": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": "0.00"
                },
                "unit_cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "total_price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_lot_history_branch_product_wh",
                    "columns": [
                        "global_branch_office_id",
                        "product_id",
                        "warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_lot_history_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_price": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "price2": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "price3": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_price_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_price_product_currency",
                    "columns": [
                        "product_id",
                        "currency_id"
                    ],
                    "unique": false
                },
                {
                    "name": "products_price_lot_id",
                    "columns": [
                        "lot_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_price_history": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "price2": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "price3": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_price_history_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_price_history_product_date",
                    "columns": [
                        "product_id",
                        "created_at"
                    ],
                    "unique": false
                },
                {
                    "name": "products_price_history_lot",
                    "columns": [
                        "lot_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_purchase_pending": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_purchase_pending_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_purchase_pending_status",
                    "columns": [
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "purchase.pending",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_sell_price": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "unit_cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "fob": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "costs": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "profit": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_sell_price_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_sell_price_product_currency",
                    "columns": [
                        "product_id",
                        "currency_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_sell_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_stock": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": "0.00"
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_stock_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_stock_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "product_id",
                    "columns": [
                        "product_id"
                    ],
                    "unique": true
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_stock_adjustment": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "previous_quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "type": {
                    "type": "string",
                    "notnull": true,
                    "default": "I"
                },
                "lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "drops_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_stock_adj_branch_lot",
                    "columns": [
                        "global_branch_office_id",
                        "lot_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_stock_adj_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_stock_history": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_stock_history_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_stock_history_product_date",
                    "columns": [
                        "product_id",
                        "created_at"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_transfer": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_transfer_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_transfer_between_warehouses": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "transfer_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "T"
                },
                "from_warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "to_warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "who_receives_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "reservation_deadline": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "source_kind": {
                    "type": "string",
                    "notnull": false,
                    "default": null
                },
                "source_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_transfer_bw_branch_date",
                    "columns": [
                        "global_branch_office_id",
                        "date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_transfer_bw_branch_from_to",
                    "columns": [
                        "global_branch_office_id",
                        "from_warehouse_id",
                        "to_warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "source_id",
                    "columns": [
                        "source_id"
                    ],
                    "unique": false
                },
                {
                    "name": "source_kind",
                    "columns": [
                        "source_kind"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_transfer_between_warehouses_detail": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "products_transfer_between_warehouses_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "from_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "from_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "to_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "to_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_transfer_detail": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "products_transfer_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "from_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "from_warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "from_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "from_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "to_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "to_warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "to_product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "to_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_transfer_detail_branch_from_wh",
                    "columns": [
                        "global_branch_office_id",
                        "from_warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_transfer_detail_branch_to_wh",
                    "columns": [
                        "global_branch_office_id",
                        "to_warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_transfer_detail_transfer",
                    "columns": [
                        "products_transfer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_wholesale_applied": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "products_wholesale_rule_id": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "has_due_date": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "wholesale_due_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_wh_applied_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_products_wh_applied_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_products_wholesale_rule": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "from_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "to_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "infinity": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "discount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "discount_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "%"
                },
                "way_to_apply": {
                    "type": "string",
                    "notnull": true,
                    "default": "NP"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_products_wh_rule_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_method": {
                    "type": "string",
                    "notnull": true,
                    "default": "CASH"
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "down_payment": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "total_cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "supplier_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "FCV"
                },
                "voucher": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "invoice_nit": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "autorization_number": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "control_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "total_items": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "packages": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "weight": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 4,
                    "notnull": false,
                    "default": null
                },
                "purchase_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "comments": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_purchase_branch_date",
                    "columns": [
                        "global_branch_office_id",
                        "purchase_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_purchase_branch_supplier",
                    "columns": [
                        "global_branch_office_id",
                        "supplier_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_purchase_supplier_date",
                    "columns": [
                        "supplier_id",
                        "purchase_date"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase_costs": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "purchase_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "costs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "cost": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_purchase_costs_branch_purchase",
                    "columns": [
                        "global_branch_office_id",
                        "purchase_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_purchase_costs_purchase",
                    "columns": [
                        "purchase_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_costs.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase_orders_allocations": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "purchase_order_detail_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "supplier_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "allocated_quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "negotiated_price": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "allocation_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "PENDING"
                },
                "rule_min_expiration_months": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "rule_max_unit_price": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": false,
                    "default": null
                },
                "instructions": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_po_alloc_detail",
                    "columns": [
                        "purchase_order_detail_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_alloc_status",
                    "columns": [
                        "allocation_status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_alloc_supplier",
                    "columns": [
                        "global_branch_office_id",
                        "supplier_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase_orders_detail": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "purchase_order_head_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "temp_product_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "purchase_pending_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "total_quantity_requested": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "reference_price": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 6,
                    "notnull": false,
                    "default": "0.000000"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_po_detail_head",
                    "columns": [
                        "purchase_order_head_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_detail_pending",
                    "columns": [
                        "purchase_pending_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_detail_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase_orders_head": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "authorized_by_users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "order_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "order_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "order_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "DRAFT"
                },
                "observations": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_po_head_authorizer",
                    "columns": [
                        "authorized_by_users_sid"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_head_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "order_status",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_head_date",
                    "columns": [
                        "global_branch_office_id",
                        "order_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_po_head_users",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase_payment_way": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "purchase_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "supplier_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_kind": {
                    "type": "string",
                    "notnull": true,
                    "default": "P"
                },
                "payment_data": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "payment_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "bank_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "comments": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "purchase_payment_way_branchs",
                    "columns": [
                        "global_branch_office_id"
                    ],
                    "unique": false
                },
                {
                    "name": "purchase_payment_way_id",
                    "columns": [
                        "purchase_id"
                    ],
                    "unique": false
                },
                {
                    "name": "purchase_payment_way_payment",
                    "columns": [
                        "payment_id"
                    ],
                    "unique": false
                },
                {
                    "name": "purchase_payment_way_supplier",
                    "columns": [
                        "supplier_id"
                    ],
                    "unique": false
                },
                {
                    "name": "purchase_payment_way_users_sid",
                    "columns": [
                        "users_sid"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_purchase_products": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "purchase_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "fob": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "costs": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "measurement_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "purchase_price": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "cost_aditional": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "warehouse_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "physical_location": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "expires": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "expiration_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_purchase_products_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_purchase_products_branch_purchase",
                    "columns": [
                        "global_branch_office_id",
                        "purchase_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_purchase_products_branch_warehouse",
                    "columns": [
                        "global_branch_office_id",
                        "warehouse_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_purchase_products_expiration",
                    "columns": [
                        "expires",
                        "expiration_date"
                    ],
                    "unique": false
                },
                {
                    "name": "online_purchase_products.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "optical_work_order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sell_order_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "document_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "customer_full_name": {
                    "type": "string",
                    "length": 150,
                    "notnull": true,
                    "default": "Sin nombre"
                },
                "customer_nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "customer_complemento": {
                    "type": "string",
                    "length": 5,
                    "notnull": false,
                    "default": null
                },
                "customer_email": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "discount_all_products": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "descuentoAdicional": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "discount_total": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "total": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "exchange_used": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "codigoExcepcion": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "medical_prescription_detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "sended": {
                    "type": "string",
                    "notnull": true,
                    "default": "F"
                },
                "date_movement": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_branch_customer",
                    "columns": [
                        "global_branch_office_id",
                        "customer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_branch_date",
                    "columns": [
                        "global_branch_office_id",
                        "date_movement"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_branch_sellpoint_date",
                    "columns": [
                        "global_branch_office_id",
                        "sellpoint_id",
                        "date_movement"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_aditional_discount": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "ammount": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "reason": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_add_disc_provisional",
                    "columns": [
                        "provisional"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_add_disc_sell",
                    "columns": [
                        "sell_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_attachments": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "attachments": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_debit_credit": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "document_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "customer_full_name": {
                    "type": "string",
                    "length": 150,
                    "notnull": true,
                    "default": "Sin nombre"
                },
                "customer_nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "customer_complemento": {
                    "type": "string",
                    "length": 5,
                    "notnull": false,
                    "default": null
                },
                "customer_email": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "discount_all_products": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "descuentoAdicional": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "discount_total": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "total": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "exchange_used": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "codigoExcepcion": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "sended": {
                    "type": "string",
                    "notnull": true,
                    "default": "F"
                },
                "date_movement": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_dc_branch_date",
                    "columns": [
                        "global_branch_office_id",
                        "date_movement"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_dc_branch_sellpoint_date",
                    "columns": [
                        "global_branch_office_id",
                        "sellpoint_id",
                        "date_movement"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_debit_credit_returned": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_fullname": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "total_price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "discount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "numeroSerie": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "numeroImei": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "codigoDetalleTransaccion": {
                    "type": "smallint",
                    "notnull": true,
                    "default": "2"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_dc_returned_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_dc_returned_sell",
                    "columns": [
                        "sell_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_invoice": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "cuis": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "cufd": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "cafc": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "codigo_control": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "cuf": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "legend": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "law": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "zofra": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "nitConjunto": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "modalidadServicio": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "numeroParteRecepcion": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "nombreEstudiante": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "periodoFacturado": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "external": {
                    "type": "string",
                    "length": 30,
                    "notnull": false,
                    "default": null
                },
                "tipo_factura_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "tipo_emision": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "codigo_sucursal": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "hospedaje": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "estado": {
                    "type": "string",
                    "notnull": true,
                    "default": "V"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "milliseconds": {
                    "type": "smallint",
                    "notnull": false,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_invoice_branch_estado",
                    "columns": [
                        "global_branch_office_id",
                        "estado"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_invoice_branch_sell",
                    "columns": [
                        "global_branch_office_id",
                        "sell_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_invoice_cancel": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_invoice_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "codigo_motivo_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "tipo_factura_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "codigoDescripcion": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "codigoEstado": {
                    "type": "integer",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sivir_sell_invoice_cancel.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_invoice_debit_credit": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_detail": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "cuis": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "cufd": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "codigo_control": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "cuf": {
                    "type": "text",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "legend": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "law": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "zofra": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "tipo_factura_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "tipo_emision": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "codigo_sucursal": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "estado": {
                    "type": "string",
                    "notnull": true,
                    "default": "V"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "milliseconds": {
                    "type": "smallint",
                    "notnull": false,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_invoice_military": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "fuerza_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "grado_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "tipo_armamento": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "departamento_actual_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "domicilio_actual": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "domicilio_destino_actual": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "observacion": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_sell_invoice_status": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "invoice_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "codigoDescripcion": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "codigoEstado": {
                    "type": "string",
                    "length": 10,
                    "notnull": false,
                    "default": null
                },
                "codigoRecepcion": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "codigo": {
                    "type": "string",
                    "length": 10,
                    "notnull": false,
                    "default": null
                },
                "descripcion": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "attempts": {
                    "type": "integer",
                    "notnull": false,
                    "default": "0"
                },
                "timeout": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "sended": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_invoice_status_invoice",
                    "columns": [
                        "invoice_id",
                        "status",
                        "sended"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_sell_invoice_status.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_note": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "zofra": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "codigo_sucursal": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "source": {
                    "type": "string",
                    "notnull": true,
                    "default": "L"
                },
                "deliverycoordinates": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "estado": {
                    "type": "string",
                    "notnull": true,
                    "default": "V"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_note_branch_sell",
                    "columns": [
                        "global_branch_office_id",
                        "sell_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_order": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "zofra": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "codigo_sucursal": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "deliverydate": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "deliveryaddress": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "deliveryobs": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "deliverycoordinates": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "deliver_status": {
                    "type": "string",
                    "notnull": true,
                    "default": "P"
                },
                "estado": {
                    "type": "string",
                    "notnull": true,
                    "default": "V"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_order_branch_delivery",
                    "columns": [
                        "global_branch_office_id",
                        "deliverydate",
                        "deliver_status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_order_branch_sell",
                    "columns": [
                        "global_branch_office_id",
                        "sell_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_payment_way": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "payment_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_data": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "payment_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": "0.00000"
                },
                "down_payment": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": null
                },
                "down_payment_payment_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "first_payment_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "down_payment_detail": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "first_payment_date",
                    "columns": [
                        "first_payment_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_payment_way_branch_payment",
                    "columns": [
                        "global_branch_office_id",
                        "payment_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_payment_way_branch_sell",
                    "columns": [
                        "global_branch_office_id",
                        "sell_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_point": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "descripcion": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "nombre_punto_venta": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_kind_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "2"
                },
                "enable_restaurant_mode": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "enable_room_mode": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "enable_supermarket_mode": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "could_close": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "allow_credits": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "allow_expenses": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "could_register_other_incomes": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "could_homologate_product_on_sell": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "could_sell_empty_inventory": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "could_make_proforma": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "could_search_other_branches": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "warehouses_allowed": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "*"
                },
                "users_allowed": {
                    "type": "text",
                    "notnull": true,
                    "default": null
                },
                "codigo_punto_venta": {
                    "type": "string",
                    "length": 25,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_point_branch_codigo",
                    "columns": [
                        "global_branch_office_id",
                        "codigo_punto_venta"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_point_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_point_closed": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_point_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "date_closed": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "exchange_open": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "incomes_on_sellpoint": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "incomes_by_credit": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "incomes_by_booking": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "expenses_on_sellpoint": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "payment_pending_on_sellpoint": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "other_payment_on_sellpoint": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "incomes_sum": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "expenses_sum": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_point_closed_branch_sellpoint",
                    "columns": [
                        "global_branch_office_id",
                        "sell_point_id",
                        "date_closed"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_point_cufd": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "codigo_cufd": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "codigo_control": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "direccion": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "fecha_vigencia": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "has_been_increased": {
                    "type": "string",
                    "notnull": false,
                    "default": "N"
                },
                "reason_for_increase": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "days_increased": {
                    "type": "smallint",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_sell_point_expenses": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_point_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "expense_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": false,
                    "default": "1"
                },
                "amount": {
                    "type": "decimal",
                    "precision": 10,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "expenses_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "comments": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_point_expenses_branch_sellpoint",
                    "columns": [
                        "global_branch_office_id",
                        "sell_point_id",
                        "expense_date"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_point_external_income": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_point_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "date_movement": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "income_reason": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "attachments": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_point_ext_income_branch_sellpoint",
                    "columns": [
                        "global_branch_office_id",
                        "sell_point_id",
                        "date_movement"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_point_movement": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "date_movement": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "type": {
                    "type": "string",
                    "notnull": true,
                    "default": "I"
                },
                "amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "reason": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_point_movement_branch_sellpoint",
                    "columns": [
                        "global_branch_office_id",
                        "sellpoint_id",
                        "date_movement"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point_movement.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_point_open": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "date_open": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "exchange_open": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "terminal": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_point_open_branch_sellpoint",
                    "columns": [
                        "global_branch_office_id",
                        "sellpoint_id",
                        "date_open"
                    ],
                    "unique": false
                },
                {
                    "name": "sell_point_movement.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_sold": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_fullname": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "hospital_clinicas": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "total_price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "discount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "numeroSerie": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "numeroImei": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "detalleHuespedes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "hospedajeIngresoYSalida": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_sold_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_sold_sell",
                    "columns": [
                        "sell_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_sold_lot_used": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_lot_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "lot": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_sold_lot_used_branch_lot",
                    "columns": [
                        "global_branch_office_id",
                        "product_lot_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_sold_lot_used_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_sell_sold_lot_used_sell",
                    "columns": [
                        "sell_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sell_sold_saved": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sold_key": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_fullname": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "hospital_clinicas": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "quantity": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "total_price": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "discount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": false,
                    "default": "0.00000"
                },
                "numeroSerie": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "numeroImei": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "detalleHuespedes": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "hospedajeIngresoYSalida": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_sell_sold_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "sivir_products_price.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                },
                {
                    "name": "sold_key_sivir_sell_sold_saved",
                    "columns": [
                        "sold_key"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_service_periods": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "products_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "period_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "M"
                },
                "days_of_interval": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "starts_on_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "hole_year": {
                    "type": "string",
                    "notnull": true,
                    "default": "Y"
                },
                "ends_of_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_service_periods_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "products_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_service_periods_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_service_periods_payments": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "service_period_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "period_title": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_service_periods_payments_branch_service",
                    "columns": [
                        "global_branch_office_id",
                        "service_period_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_service_periods_payments_product",
                    "columns": [
                        "product_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_service_periods_payments_made": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "service_periods_payments_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "product_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "provisional": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "amount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_service_periods_made_branch_product",
                    "columns": [
                        "global_branch_office_id",
                        "product_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_service_periods_made_service_pay",
                    "columns": [
                        "service_periods_payments_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_significant_event": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "cufd": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "cufdEvento": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "codigoMotivoEvento": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "descripcion": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "fechaHoraInicioEvento": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "fechaHoraFinEvento": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "codigoRecepcionEventoSignificativo": {
                    "type": "string",
                    "length": 25,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_store_credit": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "credit_reason": {
                    "type": "string",
                    "length": 150,
                    "notnull": true,
                    "default": null
                },
                "sell_id": {
                    "type": "bigint",
                    "notnull": false,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "how_many_payments": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_intervals": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "first_payment_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "paid_complete": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_store_credit_branch_customer",
                    "columns": [
                        "global_branch_office_id",
                        "customer_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_credit_branch_first_payment",
                    "columns": [
                        "global_branch_office_id",
                        "first_payment_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_credit_branch_paid",
                    "columns": [
                        "global_branch_office_id",
                        "paid_complete",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_store_credit_payments_made": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "store_credit_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "store_credit_payments_todo_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_made_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_store_credit_payments_todo": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "store_credit_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "total_ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_duedate": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "paid": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_store_credit_todo_branch_duedate",
                    "columns": [
                        "global_branch_office_id",
                        "payment_duedate",
                        "paid"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_credit_todo_credit",
                    "columns": [
                        "store_credit_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_store_debt": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "supplier_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "debt_reason": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "purchase_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "how_many_payments": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_intervals": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "first_payment_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "paid_complete": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_store_debt_branch_first_payment",
                    "columns": [
                        "global_branch_office_id",
                        "first_payment_date"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_debt_branch_paid",
                    "columns": [
                        "global_branch_office_id",
                        "paid_complete",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_debt_branch_supplier",
                    "columns": [
                        "global_branch_office_id",
                        "supplier_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_store_debt_payments_made": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "store_debt_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "store_debt_payments_todo_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sellpoint_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "payment_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "payment_ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_made_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_store_debt_made_debt",
                    "columns": [
                        "store_debt_id"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_debt_made_todo",
                    "columns": [
                        "store_debt_payments_todo_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_store_debt_payments_todo": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "store_debt_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "total_ammount": {
                    "type": "decimal",
                    "precision": 15,
                    "scale": 5,
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "payment_duedate": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "paid": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_sivir_store_debt_todo_branch_duedate",
                    "columns": [
                        "global_branch_office_id",
                        "payment_duedate",
                        "paid"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_sivir_store_debt_todo_debt",
                    "columns": [
                        "store_debt_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "sivir_sync_by_day": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "day": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "sivir_system_behavior": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "codigo_sistema": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "qr_url": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": true,
                    "default": null
                },
                "codigo_ambiente": {
                    "type": "boolean",
                    "notnull": true,
                    "default": null
                },
                "privatekey": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": "llave.pem"
                },
                "publickey": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": "certificado.pem"
                },
                "key_due_date": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "sivir_system_behavior.relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "sivir_weight_scale_configuration": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "sector_digit": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "article_code_size": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "weight_digit": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "4"
                },
                "control_code_size": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "weight_scale_relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        },
        "supplier_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "catalogs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "supplier_vendors": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "full_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "email": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "social_media": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "phones": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "address": {
                    "type": "string",
                    "length": 512,
                    "notnull": false,
                    "default": null
                },
                "references": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "photo": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "warehouse": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "customer_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "warehouse": {
                    "type": "string",
                    "length": 200,
                    "notnull": true,
                    "default": null
                },
                "location": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "type_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_allowed": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_warehouse_branch_status",
                    "columns": [
                        "global_branch_office_id",
                        "status"
                    ],
                    "unique": false
                },
                {
                    "name": "idx_warehouse_branch_type",
                    "columns": [
                        "global_branch_office_id",
                        "type_id"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        }
    },
    "rodrckun_core_customers_rodriguezco": {
        "core_customers_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_customers_countries": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "unsigned": true
                },
                "name": {
                    "type": "string",
                    "length": 100,
                    "notnull": true,
                    "default": null
                },
                "iso3": {
                    "type": "string",
                    "length": 3,
                    "notnull": false,
                    "default": null
                },
                "iso2": {
                    "type": "string",
                    "length": 2,
                    "notnull": false,
                    "default": null
                },
                "phonecode": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "capital": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "currency": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "native": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                },
                "emoji": {
                    "type": "string",
                    "length": 191,
                    "notnull": false,
                    "default": null
                },
                "emojiU": {
                    "type": "string",
                    "length": 191,
                    "notnull": false,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "flag": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "1"
                },
                "wikiDataId": {
                    "type": "string",
                    "length": 255,
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_customers_currency": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "currency": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 15,
                    "notnull": true,
                    "default": null
                },
                "usd_dollar": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "global_countries_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_customers_person": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "phone_number": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "intern": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "cargo_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "area_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_customers_users": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "profile_picture": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "password": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "remember_token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "ttl": {
                    "type": "integer",
                    "notnull": true,
                    "default": "172800"
                },
                "wrong_login_attempt": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "date_wrong_login_attempt": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "client_ip": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "customers_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "catalogs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "portfolio_customers": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "customer_type_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 75,
                    "notnull": true,
                    "default": null
                },
                "middle_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "document_type": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "document_number": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "customer_complemento": {
                    "type": "string",
                    "length": 5,
                    "notnull": false,
                    "default": null
                },
                "gender_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "birthday": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "social_media": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "phones": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "address": {
                    "type": "string",
                    "length": 512,
                    "notnull": false,
                    "default": null
                },
                "references": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "photo": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "siat_verified": {
                    "type": "string",
                    "length": 1,
                    "notnull": true,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "code",
                    "columns": [
                        "code"
                    ],
                    "unique": false
                },
                {
                    "name": "document_number",
                    "columns": [
                        "document_number"
                    ],
                    "unique": false
                },
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        }
    },
    "rodrckun_core_supplier_rodriguezcor": {
        "core_supplier_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_supplier_currency": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "currency": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 15,
                    "notnull": true,
                    "default": null
                },
                "usd_dollar": {
                    "type": "string",
                    "notnull": true,
                    "default": "N"
                },
                "global_countries_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_supplier_person": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "first_name": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "last_name": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "phone_number": {
                    "type": "string",
                    "length": 200,
                    "notnull": false,
                    "default": null
                },
                "intern": {
                    "type": "string",
                    "length": 75,
                    "notnull": false,
                    "default": null
                },
                "cargo_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "area_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "core_supplier_users": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null
                },
                "sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "person_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "profile_picture": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "email": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "password": {
                    "type": "text",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "remember_token": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "ttl": {
                    "type": "integer",
                    "notnull": true,
                    "default": "172800"
                },
                "wrong_login_attempt": {
                    "type": "boolean",
                    "notnull": true,
                    "default": "0"
                },
                "date_wrong_login_attempt": {
                    "type": "date",
                    "notnull": false,
                    "default": null
                },
                "client_ip": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": null
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": false,
                    "default": null
                }
            },
            "primary": [],
            "indexes": [],
            "foreign_keys": []
        },
        "supplier_catalog_items": {
            "columns": {
                "id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "catalogs_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "value": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "lang": {
                    "type": "string",
                    "length": 5,
                    "notnull": true,
                    "default": null
                },
                "catalog_code": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_code_dep": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "catalog_id_dep": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "description": {
                    "type": "string",
                    "length": 512,
                    "notnull": true,
                    "default": null
                },
                "svg_image": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "supplier_vendors": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "country_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "full_name": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "nit": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": "0"
                },
                "email": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "social_media": {
                    "type": "text",
                    "length": 65535,
                    "notnull": false,
                    "default": null
                },
                "phones": {
                    "type": "string",
                    "length": 150,
                    "notnull": false,
                    "default": null
                },
                "address": {
                    "type": "string",
                    "length": 512,
                    "notnull": false,
                    "default": null
                },
                "references": {
                    "type": "text",
                    "length": 16777215,
                    "notnull": false,
                    "default": null
                },
                "photo": {
                    "type": "string",
                    "length": 250,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                },
                "updated_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "relative",
                    "columns": [
                        "relative"
                    ],
                    "unique": true
                }
            ],
            "foreign_keys": []
        }
    },
    "rodrckun_core_accounting_rodriguezco": {
        "core_accounting_auxiliary": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "origin_type": {
                    "type": "string",
                    "notnull": true,
                    "default": "LOCAL"
                },
                "source_module": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "source_entity": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "external_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 255,
                    "notnull": true,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "idx_auxiliary_lookup",
                    "columns": [
                        "source_module",
                        "source_entity",
                        "external_relative"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": []
        },
        "core_accounting_entry": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "accounting_period_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "entry_type": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "entry_number": {
                    "type": "string",
                    "length": 100,
                    "notnull": true,
                    "default": null
                },
                "entry_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "currency_id": {
                    "type": "integer",
                    "notnull": true,
                    "default": "1"
                },
                "currency_rate": {
                    "type": "decimal",
                    "precision": 12,
                    "scale": 6,
                    "notnull": true,
                    "default": null
                },
                "ufv_rate": {
                    "type": "decimal",
                    "precision": 12,
                    "scale": 6,
                    "notnull": false,
                    "default": null
                },
                "gloss": {
                    "type": "text",
                    "length": 65535,
                    "notnull": true,
                    "default": null
                },
                "document_reference": {
                    "type": "string",
                    "length": 100,
                    "notnull": false,
                    "default": null
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_by": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "accounting_period_id",
                    "columns": [
                        "accounting_period_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": [
                {
                    "name": "core_accounting_entry_ibfk_1",
                    "columns": [
                        "accounting_period_id"
                    ],
                    "foreign_table": "core_accounting_period",
                    "foreign_columns": [
                        "relative"
                    ],
                    "on_delete": null,
                    "on_update": null
                }
            ]
        },
        "core_accounting_entry_details": {
            "columns": {
                "id": {
                    "type": "bigint",
                    "notnull": true,
                    "default": null,
                    "autoincrement": true
                },
                "entry_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "account_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "auxiliary_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "debit": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "credit": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "debit_foreign": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                },
                "credit_foreign": {
                    "type": "decimal",
                    "precision": 18,
                    "scale": 2,
                    "notnull": false,
                    "default": "0.00"
                }
            },
            "primary": [
                "id"
            ],
            "indexes": [
                {
                    "name": "account_relative",
                    "columns": [
                        "account_relative"
                    ],
                    "unique": false
                },
                {
                    "name": "entry_relative",
                    "columns": [
                        "entry_relative"
                    ],
                    "unique": false
                },
                {
                    "name": "fk_entry_details_auxiliary",
                    "columns": [
                        "auxiliary_id"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": [
                {
                    "name": "core_accounting_entry_details_ibfk_1",
                    "columns": [
                        "entry_relative"
                    ],
                    "foreign_table": "core_accounting_entry",
                    "foreign_columns": [
                        "relative"
                    ],
                    "on_delete": null,
                    "on_update": null
                },
                {
                    "name": "core_accounting_entry_details_ibfk_2",
                    "columns": [
                        "account_relative"
                    ],
                    "foreign_table": "core_accounting_plan",
                    "foreign_columns": [
                        "relative"
                    ],
                    "on_delete": null,
                    "on_update": null
                },
                {
                    "name": "fk_entry_details_auxiliary",
                    "columns": [
                        "auxiliary_id"
                    ],
                    "foreign_table": "core_accounting_auxiliary",
                    "foreign_columns": [
                        "relative"
                    ],
                    "on_delete": null,
                    "on_update": null
                }
            ]
        },
        "core_accounting_period": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "year": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "start_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "end_date": {
                    "type": "date",
                    "notnull": true,
                    "default": null
                },
                "is_closed": {
                    "type": "boolean",
                    "notnull": false,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                },
                "created_at": {
                    "type": "datetime",
                    "notnull": true,
                    "default": "CURRENT_TIMESTAMP"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [],
            "foreign_keys": []
        },
        "core_accounting_plan": {
            "columns": {
                "relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "users_sid": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "global_branch_office_id": {
                    "type": "string",
                    "length": 50,
                    "notnull": true,
                    "default": null
                },
                "parent_relative": {
                    "type": "string",
                    "length": 50,
                    "notnull": false,
                    "default": null
                },
                "code": {
                    "type": "string",
                    "length": 25,
                    "notnull": true,
                    "default": null
                },
                "label": {
                    "type": "string",
                    "length": 250,
                    "notnull": true,
                    "default": null
                },
                "level": {
                    "type": "integer",
                    "notnull": true,
                    "default": null
                },
                "account_type": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "nature": {
                    "type": "string",
                    "notnull": true,
                    "default": null
                },
                "is_selectable": {
                    "type": "boolean",
                    "notnull": false,
                    "default": "0"
                },
                "status": {
                    "type": "string",
                    "length": 2,
                    "notnull": true,
                    "default": "A"
                }
            },
            "primary": [
                "relative"
            ],
            "indexes": [
                {
                    "name": "code",
                    "columns": [
                        "code"
                    ],
                    "unique": false
                },
                {
                    "name": "parent_relative",
                    "columns": [
                        "parent_relative"
                    ],
                    "unique": false
                }
            ],
            "foreign_keys": [
                {
                    "name": "core_accounting_plan_ibfk_1",
                    "columns": [
                        "parent_relative"
                    ],
                    "foreign_table": "core_accounting_plan",
                    "foreign_columns": [
                        "relative"
                    ],
                    "on_delete": null,
                    "on_update": null
                }
            ]
        }
    }
}