{
    "payments": [
        {
            "Field": "id",
            "Type": "int(10) unsigned",
            "Null": "NO",
            "Key": "PRI",
            "Default": null,
            "Extra": "auto_increment"
        },
        {
            "Field": "payable_type",
            "Type": "varchar(50)",
            "Null": "NO",
            "Key": "MUL",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "payable_id",
            "Type": "int(10) unsigned",
            "Null": "NO",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "amount",
            "Type": "decimal(12,2)",
            "Null": "NO",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "method",
            "Type": "enum('cash','card','bank','mobile')",
            "Null": "YES",
            "Key": "",
            "Default": "cash",
            "Extra": ""
        },
        {
            "Field": "note",
            "Type": "text",
            "Null": "YES",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "paid_at",
            "Type": "date",
            "Null": "NO",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "created_at",
            "Type": "timestamp",
            "Null": "NO",
            "Key": "",
            "Default": "current_timestamp()",
            "Extra": ""
        }
    ],
    "financial_transactions": [
        {
            "Field": "id",
            "Type": "int(11)",
            "Null": "NO",
            "Key": "PRI",
            "Default": null,
            "Extra": "auto_increment"
        },
        {
            "Field": "financial_account_id",
            "Type": "int(11)",
            "Null": "NO",
            "Key": "MUL",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "transaction_type",
            "Type": "enum('credit','debit')",
            "Null": "NO",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "amount",
            "Type": "decimal(15,2)",
            "Null": "NO",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "reference_type",
            "Type": "varchar(50)",
            "Null": "YES",
            "Key": "MUL",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "reference_id",
            "Type": "int(11)",
            "Null": "YES",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "description",
            "Type": "text",
            "Null": "YES",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "transaction_date",
            "Type": "date",
            "Null": "NO",
            "Key": "MUL",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "created_by",
            "Type": "int(11)",
            "Null": "YES",
            "Key": "",
            "Default": null,
            "Extra": ""
        },
        {
            "Field": "created_at",
            "Type": "timestamp",
            "Null": "NO",
            "Key": "",
            "Default": "current_timestamp()",
            "Extra": ""
        }
    ]
}
