{
    "table": {
        "name": "ctb_lancamento"
    },
    "attributes": {
        "lote": {
            "type": "integer"
        },
        "sequencia": {
            "type": "integer"
        },
        "conta_debito": {
            "type": "integer"
        },
        "conta_credito": {
            "type": "integer"
        },
        "valor": {
            "type": "integer"
        },
        "data": {
            "type": "datetime"
        },
        "historico": {
            "type": "integer"
        },
        "documento": {
            "type": "string",
            "maxlen": 100
        },
        "operacao": {
            "type": "string",
            "maxlen": 1
        },
        "centro_custo_debito": {
            "type": "integer"
        },
        "seq_partida_dobrada": {
            "type": "integer"
        },
        "seq_movimento": {
            "type": "integer"
        },
        "centro_custo_credito": {
            "type": "integer"
        }
    },
    "originaltable": {
        "fullname": "public.ctb_lancamento",
        "name": "ctb_lancamento",
        "relationship": false,
        "columns": {
            "lote": {
                "position": 1,
                "name": "lote",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": {
                    "column_name": "lote",
                    "foreign_table_name": "ctb_lancamento_header",
                    "foreign_column_name": "lote"
                }
            },
            "sequencia": {
                "position": 2,
                "name": "sequencia",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "conta_debito": {
                "position": 3,
                "name": "conta_debito",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 16,
                "radix": 10,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "conta_credito": {
                "position": 4,
                "name": "conta_credito",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 16,
                "radix": 10,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "valor": {
                "position": 5,
                "name": "valor",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "data": {
                "position": 6,
                "name": "data",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "historico": {
                "position": 7,
                "name": "historico",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "documento": {
                "position": 8,
                "name": "documento",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 100,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "operacao": {
                "position": 9,
                "name": "operacao",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 1,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "centro_custo_debito": {
                "position": 10,
                "name": "centro_custo_debito",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "seq_partida_dobrada": {
                "position": 11,
                "name": "seq_partida_dobrada",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "seq_movimento": {
                "position": 12,
                "name": "seq_movimento",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "centro_custo_credito": {
                "position": 13,
                "name": "centro_custo_credito",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            }
        },
        "constraints": [],
        "relationships": {
            "one-to-one": [],
            "one-to-many": [],
            "many-to-one": [
                {
                    "name": "lote",
                    "to": "ctb_lancamento_header",
                    "to_attribute": "lote"
                }
            ],
            "many-to-many": []
        },
        "foreignkeys": [
            {
                "column_name": "lote",
                "foreign_table_name": "ctb_lancamento_header",
                "foreign_column_name": "lote"
            }
        ]
    }
}