{
    "table": {
        "name": "trp_despacho"
    },
    "attributes": {
        "filial_despacho": {
            "type": "integer"
        },
        "codigo_despacho": {
            "type": "integer"
        },
        "filial_papeleta": {
            "type": "integer"
        },
        "codigo_papeleta": {
            "type": "integer"
        },
        "data_emissao": {
            "type": "datetime"
        },
        "local": {
            "type": "string",
            "maxlen": 50
        },
        "procedencia": {
            "type": "string",
            "maxlen": 50
        },
        "destino": {
            "type": "string",
            "maxlen": 50
        },
        "remetente": {
            "type": "integer"
        },
        "destinatario": {
            "type": "integer"
        },
        "transportador": {
            "type": "integer"
        },
        "valor_frete": {
            "type": "integer"
        },
        "valor_carga": {
            "type": "integer"
        },
        "valor_descarga": {
            "type": "integer"
        },
        "valor_outros_acrescimos": {
            "type": "integer"
        },
        "valor_outros_descontos": {
            "type": "integer"
        },
        "valor_adiantamento": {
            "type": "integer"
        },
        "valor_abastecimento": {
            "type": "integer"
        },
        "valor_pedagio": {
            "type": "integer"
        },
        "valor_imposto_renda": {
            "type": "integer"
        },
        "valor_inss": {
            "type": "integer"
        },
        "valor_sest_senat": {
            "type": "integer"
        },
        "valor_sub_total": {
            "type": "integer"
        },
        "valor_liquido": {
            "type": "integer"
        },
        "banco": {
            "type": "integer"
        },
        "agencia": {
            "type": "string",
            "maxlen": 10
        },
        "conta_corrente": {
            "type": "string",
            "maxlen": 15
        },
        "numero_cheque": {
            "type": "string",
            "maxlen": 14
        },
        "data_vencimento": {
            "type": "datetime"
        },
        "situacao": {
            "type": "string",
            "maxlen": 1
        }
    },
    "originaltable": {
        "fullname": "public.trp_despacho",
        "name": "trp_despacho",
        "relationship": false,
        "columns": {
            "filial_despacho": {
                "position": 1,
                "name": "filial_despacho",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "codigo_despacho": {
                "position": 2,
                "name": "codigo_despacho",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "filial_papeleta": {
                "position": 3,
                "name": "filial_papeleta",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "codigo_papeleta": {
                "position": 4,
                "name": "codigo_papeleta",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "data_emissao": {
                "position": 5,
                "name": "data_emissao",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "local": {
                "position": 6,
                "name": "local",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 50,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "procedencia": {
                "position": 7,
                "name": "procedencia",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 50,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "destino": {
                "position": 8,
                "name": "destino",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 50,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "remetente": {
                "position": 9,
                "name": "remetente",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "destinatario": {
                "position": 10,
                "name": "destinatario",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "transportador": {
                "position": 11,
                "name": "transportador",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "valor_frete": {
                "position": 12,
                "name": "valor_frete",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_carga": {
                "position": 13,
                "name": "valor_carga",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_descarga": {
                "position": 14,
                "name": "valor_descarga",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_outros_acrescimos": {
                "position": 15,
                "name": "valor_outros_acrescimos",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_outros_descontos": {
                "position": 16,
                "name": "valor_outros_descontos",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_adiantamento": {
                "position": 17,
                "name": "valor_adiantamento",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_abastecimento": {
                "position": 18,
                "name": "valor_abastecimento",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_pedagio": {
                "position": 19,
                "name": "valor_pedagio",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_imposto_renda": {
                "position": 20,
                "name": "valor_imposto_renda",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_inss": {
                "position": 21,
                "name": "valor_inss",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_sest_senat": {
                "position": 22,
                "name": "valor_sest_senat",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_sub_total": {
                "position": 23,
                "name": "valor_sub_total",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_liquido": {
                "position": 24,
                "name": "valor_liquido",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "banco": {
                "position": 25,
                "name": "banco",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "agencia": {
                "position": 26,
                "name": "agencia",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 10,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "conta_corrente": {
                "position": 27,
                "name": "conta_corrente",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 15,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "numero_cheque": {
                "position": 28,
                "name": "numero_cheque",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 14,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_vencimento": {
                "position": 29,
                "name": "data_vencimento",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "situacao": {
                "position": 30,
                "name": "situacao",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 1,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            }
        },
        "constraints": [],
        "relationships": {
            "one-to-one": [],
            "one-to-many": [],
            "many-to-one": [],
            "many-to-many": []
        }
    }
}