{
    "table": {
        "name": "vnd_ordem_servico"
    },
    "attributes": {
        "filial": {
            "type": "integer"
        },
        "ordem_servico": {
            "key": "primary",
            "type": "integer"
        },
        "filial_veiculo": {
            "type": "integer"
        },
        "placa": {
            "type": "string",
            "maxlen": 8
        },
        "kilometragem": {
            "type": "integer"
        },
        "nivel_combustivel": {
            "type": "string",
            "maxlen": 100
        },
        "data_entrada": {
            "type": "datetime"
        },
        "hora_entrada": {
            "type": "string"
        },
        "data_saida": {
            "type": "datetime"
        },
        "hora_saida": {
            "type": "string"
        },
        "foto_veiculo": {
            "type": "integer"
        },
        "valor_total_servico": {
            "type": "integer"
        },
        "status": {
            "type": "string",
            "maxlen": 1
        },
        "servicos": {
            "type": "string",
            "maxlen": 5000
        },
        "kilometragem_ult_troca_oleo": {
            "type": "integer"
        },
        "data_ult_troca_oleo": {
            "type": "datetime"
        }
    },
    "originaltable": {
        "fullname": "public.vnd_ordem_servico",
        "name": "vnd_ordem_servico",
        "relationship": false,
        "columns": {
            "filial": {
                "position": 1,
                "name": "filial",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "ordem_servico": {
                "position": 2,
                "name": "ordem_servico",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "filial_veiculo": {
                "position": 3,
                "name": "filial_veiculo",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "placa": {
                "position": 4,
                "name": "placa",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 8,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "kilometragem": {
                "position": 5,
                "name": "kilometragem",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "nivel_combustivel": {
                "position": 6,
                "name": "nivel_combustivel",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 100,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_entrada": {
                "position": 7,
                "name": "data_entrada",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "hora_entrada": {
                "position": 8,
                "name": "hora_entrada",
                "type": "time without time zone",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_saida": {
                "position": 9,
                "name": "data_saida",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "hora_saida": {
                "position": 10,
                "name": "hora_saida",
                "type": "time without time zone",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "foto_veiculo": {
                "position": 11,
                "name": "foto_veiculo",
                "type": "oid",
                "nullable": "YES",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "valor_total_servico": {
                "position": 12,
                "name": "valor_total_servico",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "status": {
                "position": 13,
                "name": "status",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 1,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "servicos": {
                "position": 14,
                "name": "servicos",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 5000,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "kilometragem_ult_troca_oleo": {
                "position": 15,
                "name": "kilometragem_ult_troca_oleo",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "data_ult_troca_oleo": {
                "position": 16,
                "name": "data_ult_troca_oleo",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            }
        },
        "constraints": [],
        "relationships": {
            "one-to-one": [],
            "one-to-many": [],
            "many-to-one": [],
            "many-to-many": []
        }
    }
}