{
    "table": {
        "name": "ent_pre_nota"
    },
    "attributes": {
        "filial_nota": {
            "type": "integer"
        },
        "filial_for": {
            "type": "integer"
        },
        "fornecedor": {
            "type": "integer"
        },
        "serie": {
            "type": "string",
            "maxlen": 6
        },
        "nota": {
            "type": "integer"
        },
        "almoxarifado": {
            "type": "integer"
        },
        "data_emissao": {
            "type": "datetime"
        },
        "data_entrega": {
            "type": "datetime"
        },
        "tipo_movimento": {
            "type": "integer"
        },
        "cfop": {
            "type": "integer"
        },
        "situacao": {
            "type": "string",
            "maxlen": 1
        }
    },
    "originaltable": {
        "fullname": "public.ent_pre_nota",
        "name": "ent_pre_nota",
        "relationship": false,
        "columns": {
            "filial_nota": {
                "position": 1,
                "name": "filial_nota",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "filial_for": {
                "position": 2,
                "name": "filial_for",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": {
                    "column_name": "filial_for",
                    "foreign_table_name": "for_fornecedor",
                    "foreign_column_name": "codigo"
                }
            },
            "fornecedor": {
                "position": 3,
                "name": "fornecedor",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": {
                    "column_name": "fornecedor",
                    "foreign_table_name": "for_fornecedor",
                    "foreign_column_name": "filial"
                }
            },
            "serie": {
                "position": 4,
                "name": "serie",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 6,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "nota": {
                "position": 5,
                "name": "nota",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "almoxarifado": {
                "position": 6,
                "name": "almoxarifado",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "data_emissao": {
                "position": 7,
                "name": "data_emissao",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "data_entrega": {
                "position": 8,
                "name": "data_entrega",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "tipo_movimento": {
                "position": 9,
                "name": "tipo_movimento",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "cfop": {
                "position": 10,
                "name": "cfop",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": {
                    "column_name": "cfop",
                    "foreign_table_name": "nfs_op_fiscal",
                    "foreign_column_name": "cfop"
                }
            },
            "situacao": {
                "position": 11,
                "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": [
                {
                    "name": "fornecedor",
                    "to": "for_fornecedor",
                    "to_attribute": "codigo"
                },
                {
                    "name": "filial_for",
                    "to": "for_fornecedor",
                    "to_attribute": "filial"
                },
                {
                    "name": "fornecedor",
                    "to": "for_fornecedor",
                    "to_attribute": "filial"
                },
                {
                    "name": "cfop",
                    "to": "nfs_op_fiscal",
                    "to_attribute": "cfop"
                },
                {
                    "name": "filial_for",
                    "to": "for_fornecedor",
                    "to_attribute": "codigo"
                }
            ],
            "many-to-many": []
        },
        "foreignkeys": [
            {
                "column_name": "fornecedor",
                "foreign_table_name": "for_fornecedor",
                "foreign_column_name": "codigo"
            },
            {
                "column_name": "filial_for",
                "foreign_table_name": "for_fornecedor",
                "foreign_column_name": "filial"
            },
            {
                "column_name": "fornecedor",
                "foreign_table_name": "for_fornecedor",
                "foreign_column_name": "filial"
            },
            {
                "column_name": "cfop",
                "foreign_table_name": "nfs_op_fiscal",
                "foreign_column_name": "cfop"
            },
            {
                "column_name": "filial_for",
                "foreign_table_name": "for_fornecedor",
                "foreign_column_name": "codigo"
            }
        ]
    }
}