{
    "table": {
        "name": "dis_entrega_nota"
    },
    "attributes": {
        "filial": {
            "type": "integer"
        },
        "nota": {
            "type": "integer"
        },
        "serie": {
            "type": "string",
            "maxlen": 6
        },
        "data_entrega": {
            "type": "datetime"
        },
        "usuario": {
            "type": "integer"
        },
        "hora_digitacao": {
            "type": "string"
        },
        "data_digitacao": {
            "type": "datetime"
        },
        "motorista": {
            "type": "integer"
        },
        "veiculo": {
            "type": "integer"
        },
        "ocorrencia": {
            "type": "integer"
        },
        "observacao": {
            "type": "string",
            "maxlen": 100
        }
    },
    "originaltable": {
        "fullname": "public.dis_entrega_nota",
        "name": "dis_entrega_nota",
        "relationship": false,
        "columns": {
            "filial": {
                "position": 1,
                "name": "filial",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": {
                    "column_name": "filial",
                    "foreign_table_name": "nfs_nota_fiscal",
                    "foreign_column_name": "nota"
                }
            },
            "nota": {
                "position": 2,
                "name": "nota",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": {
                    "column_name": "nota",
                    "foreign_table_name": "nfs_nota_fiscal",
                    "foreign_column_name": "nota"
                }
            },
            "serie": {
                "position": 3,
                "name": "serie",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 6,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": {
                    "column_name": "serie",
                    "foreign_table_name": "nfs_nota_fiscal",
                    "foreign_column_name": "nota"
                }
            },
            "data_entrega": {
                "position": 4,
                "name": "data_entrega",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "usuario": {
                "position": 5,
                "name": "usuario",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "hora_digitacao": {
                "position": 6,
                "name": "hora_digitacao",
                "type": "time with time zone",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_digitacao": {
                "position": 7,
                "name": "data_digitacao",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "motorista": {
                "position": 8,
                "name": "motorista",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "veiculo": {
                "position": 9,
                "name": "veiculo",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "ocorrencia": {
                "position": 10,
                "name": "ocorrencia",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "observacao": {
                "position": 11,
                "name": "observacao",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 100,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            }
        },
        "constraints": [],
        "relationships": {
            "one-to-one": [],
            "one-to-many": [],
            "many-to-one": [
                {
                    "name": "serie",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "filial_nota"
                },
                {
                    "name": "filial",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "filial_nota"
                },
                {
                    "name": "nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "filial_nota"
                },
                {
                    "name": "filial",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "serie"
                },
                {
                    "name": "nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "serie"
                },
                {
                    "name": "serie",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "serie"
                },
                {
                    "name": "filial",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "nota"
                },
                {
                    "name": "nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "nota"
                },
                {
                    "name": "serie",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "nota"
                }
            ],
            "many-to-many": []
        },
        "foreignkeys": [
            {
                "column_name": "serie",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "filial_nota"
            },
            {
                "column_name": "filial",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "filial_nota"
            },
            {
                "column_name": "nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "filial_nota"
            },
            {
                "column_name": "filial",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "serie"
            },
            {
                "column_name": "nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "serie"
            },
            {
                "column_name": "serie",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "serie"
            },
            {
                "column_name": "filial",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "nota"
            },
            {
                "column_name": "nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "nota"
            },
            {
                "column_name": "serie",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "nota"
            }
        ]
    }
}