{
    "table": {
        "name": "pla_quantidade_comprar"
    },
    "attributes": {
        "filial": {
            "type": "integer"
        },
        "sequencia": {
            "type": "integer"
        },
        "dt_consumo_periodo": {
            "type": "datetime"
        },
        "familia": {
            "type": "integer"
        },
        "produto": {
            "type": "integer"
        },
        "unidade_receita": {
            "type": "string",
            "maxlen": 4
        },
        "liberado_compra": {
            "type": "string",
            "maxlen": 1
        },
        "data_entrega_inicial": {
            "type": "datetime"
        },
        "data_entrega_final": {
            "type": "datetime"
        },
        "data_consumo_inicial": {
            "type": "datetime"
        },
        "data_consumo_final": {
            "type": "datetime"
        },
        "cliente": {
            "type": "integer"
        },
        "cliente_destino": {
            "type": "integer"
        },
        "qtde_consumo": {
            "type": "integer"
        },
        "qtde_estoque": {
            "type": "integer"
        },
        "qtde_comprometida": {
            "type": "integer"
        },
        "qtde_pendente": {
            "type": "integer"
        },
        "qtde_necessidade_compra": {
            "type": "integer"
        }
    },
    "originaltable": {
        "fullname": "public.pla_quantidade_comprar",
        "name": "pla_quantidade_comprar",
        "relationship": false,
        "columns": {
            "filial": {
                "position": 1,
                "name": "filial",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "sequencia": {
                "position": 2,
                "name": "sequencia",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "dt_consumo_periodo": {
                "position": 3,
                "name": "dt_consumo_periodo",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "familia": {
                "position": 4,
                "name": "familia",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "produto": {
                "position": 5,
                "name": "produto",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "unidade_receita": {
                "position": 6,
                "name": "unidade_receita",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 4,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "liberado_compra": {
                "position": 7,
                "name": "liberado_compra",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 1,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_entrega_inicial": {
                "position": 8,
                "name": "data_entrega_inicial",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_entrega_final": {
                "position": 9,
                "name": "data_entrega_final",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_consumo_inicial": {
                "position": 10,
                "name": "data_consumo_inicial",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_consumo_final": {
                "position": 11,
                "name": "data_consumo_final",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "cliente": {
                "position": 12,
                "name": "cliente",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "cliente_destino": {
                "position": 13,
                "name": "cliente_destino",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "qtde_consumo": {
                "position": 14,
                "name": "qtde_consumo",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "qtde_estoque": {
                "position": 15,
                "name": "qtde_estoque",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "qtde_comprometida": {
                "position": 16,
                "name": "qtde_comprometida",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "qtde_pendente": {
                "position": 17,
                "name": "qtde_pendente",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "qtde_necessidade_compra": {
                "position": 18,
                "name": "qtde_necessidade_compra",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            }
        },
        "constraints": [],
        "relationships": {
            "one-to-one": [],
            "one-to-many": [],
            "many-to-one": [],
            "many-to-many": []
        }
    }
}