{
    "table": {
        "name": "nfs_aux_cupom_fiscal_item"
    },
    "attributes": {
        "impressora": {
            "type": "string",
            "maxlen": 30
        },
        "data": {
            "type": "datetime"
        },
        "numero_coo": {
            "type": "string",
            "maxlen": 30
        },
        "sequencia": {
            "type": "integer"
        },
        "produto": {
            "type": "integer"
        },
        "descricao_produto": {
            "type": "string",
            "maxlen": 100
        },
        "quantidade": {
            "type": "integer"
        },
        "unidade": {
            "type": "string",
            "maxlen": 10
        },
        "valor_unitario": {
            "type": "integer"
        },
        "valor_total": {
            "type": "integer"
        },
        "desconto": {
            "type": "integer"
        },
        "acrescimo": {
            "type": "integer"
        }
    },
    "originaltable": {
        "fullname": "public.nfs_aux_cupom_fiscal_item",
        "name": "nfs_aux_cupom_fiscal_item",
        "relationship": false,
        "columns": {
            "impressora": {
                "position": 1,
                "name": "impressora",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 30,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": {
                    "column_name": "impressora",
                    "foreign_table_name": "nfs_aux_cupom_fiscal",
                    "foreign_column_name": "numero_coo"
                }
            },
            "data": {
                "position": 2,
                "name": "data",
                "type": "date",
                "nullable": "NO",
                "maxlen": null,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": {
                    "column_name": "data",
                    "foreign_table_name": "nfs_aux_cupom_fiscal",
                    "foreign_column_name": "numero_coo"
                }
            },
            "numero_coo": {
                "position": 3,
                "name": "numero_coo",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 30,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": {
                    "column_name": "numero_coo",
                    "foreign_table_name": "nfs_aux_cupom_fiscal",
                    "foreign_column_name": "impressora"
                }
            },
            "sequencia": {
                "position": 4,
                "name": "sequencia",
                "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
            },
            "descricao_produto": {
                "position": 6,
                "name": "descricao_produto",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 100,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "quantidade": {
                "position": 7,
                "name": "quantidade",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "unidade": {
                "position": 8,
                "name": "unidade",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 10,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "valor_unitario": {
                "position": 9,
                "name": "valor_unitario",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_total": {
                "position": 10,
                "name": "valor_total",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "desconto": {
                "position": 11,
                "name": "desconto",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "acrescimo": {
                "position": 12,
                "name": "acrescimo",
                "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": [
                {
                    "name": "data",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "impressora"
                },
                {
                    "name": "impressora",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "impressora"
                },
                {
                    "name": "numero_coo",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "data"
                },
                {
                    "name": "numero_coo",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "numero_coo"
                },
                {
                    "name": "impressora",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "data"
                },
                {
                    "name": "impressora",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "numero_coo"
                },
                {
                    "name": "data",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "data"
                },
                {
                    "name": "data",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "numero_coo"
                },
                {
                    "name": "numero_coo",
                    "to": "nfs_aux_cupom_fiscal",
                    "to_attribute": "impressora"
                }
            ],
            "many-to-many": []
        },
        "foreignkeys": [
            {
                "column_name": "data",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "impressora"
            },
            {
                "column_name": "impressora",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "impressora"
            },
            {
                "column_name": "numero_coo",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "data"
            },
            {
                "column_name": "numero_coo",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "numero_coo"
            },
            {
                "column_name": "impressora",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "data"
            },
            {
                "column_name": "impressora",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "numero_coo"
            },
            {
                "column_name": "data",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "data"
            },
            {
                "column_name": "data",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "numero_coo"
            },
            {
                "column_name": "numero_coo",
                "foreign_table_name": "nfs_aux_cupom_fiscal",
                "foreign_column_name": "impressora"
            }
        ]
    }
}