{
    "table": {
        "name": "nfs_nota_servico"
    },
    "attributes": {
        "filial_nota": {
            "type": "integer"
        },
        "nota": {
            "type": "integer"
        },
        "serie": {
            "type": "string",
            "maxlen": 6
        },
        "sequencia": {
            "type": "integer"
        },
        "filial_pro": {
            "type": "integer"
        },
        "produto": {
            "type": "integer"
        },
        "observacao": {
            "type": "string",
            "maxlen": 200
        },
        "quantidade": {
            "type": "integer"
        },
        "prc_unitario": {
            "type": "integer"
        },
        "prc_total": {
            "type": "integer"
        },
        "perc_iss": {
            "type": "integer"
        },
        "valor_iss": {
            "type": "integer"
        },
        "base_iss": {
            "type": "integer"
        },
        "valor_tabela": {
            "type": "integer"
        },
        "unidade": {
            "type": "string",
            "maxlen": 2
        },
        "base_iss_retido": {
            "type": "integer"
        },
        "aliq_iss_retido": {
            "type": "integer"
        },
        "valor_iss_retido": {
            "type": "integer"
        },
        "base_pis": {
            "type": "integer"
        },
        "cst_pis": {
            "type": "integer"
        },
        "aliquota_pis": {
            "type": "integer"
        },
        "valor_pis": {
            "type": "integer"
        },
        "base_cofins": {
            "type": "integer"
        },
        "cst_cofins": {
            "type": "integer"
        },
        "aliquota_cofins": {
            "type": "integer"
        },
        "valor_cofins": {
            "type": "integer"
        }
    },
    "originaltable": {
        "fullname": "public.nfs_nota_servico",
        "name": "nfs_nota_servico",
        "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": {
                    "column_name": "filial_nota",
                    "foreign_table_name": "nfs_nota_fiscal",
                    "foreign_column_name": "serie"
                }
            },
            "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": "serie"
                }
            },
            "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": "serie"
                }
            },
            "sequencia": {
                "position": 4,
                "name": "sequencia",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "filial_pro": {
                "position": 5,
                "name": "filial_pro",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "produto": {
                "position": 6,
                "name": "produto",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "observacao": {
                "position": 7,
                "name": "observacao",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 200,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "quantidade": {
                "position": 8,
                "name": "quantidade",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "prc_unitario": {
                "position": 9,
                "name": "prc_unitario",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "prc_total": {
                "position": 10,
                "name": "prc_total",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "perc_iss": {
                "position": 11,
                "name": "perc_iss",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_iss": {
                "position": 12,
                "name": "valor_iss",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "base_iss": {
                "position": 13,
                "name": "base_iss",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_tabela": {
                "position": 14,
                "name": "valor_tabela",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "unidade": {
                "position": 15,
                "name": "unidade",
                "type": "character varying",
                "nullable": "NO",
                "maxlen": 2,
                "precision": null,
                "radix": null,
                "scale": null,
                "interval": null,
                "foreignkey": null
            },
            "base_iss_retido": {
                "position": 16,
                "name": "base_iss_retido",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "aliq_iss_retido": {
                "position": 17,
                "name": "aliq_iss_retido",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_iss_retido": {
                "position": 18,
                "name": "valor_iss_retido",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "base_pis": {
                "position": 19,
                "name": "base_pis",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "cst_pis": {
                "position": 20,
                "name": "cst_pis",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "aliquota_pis": {
                "position": 21,
                "name": "aliquota_pis",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_pis": {
                "position": 22,
                "name": "valor_pis",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "base_cofins": {
                "position": 23,
                "name": "base_cofins",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "cst_cofins": {
                "position": 24,
                "name": "cst_cofins",
                "type": "integer",
                "nullable": "NO",
                "maxlen": null,
                "precision": 32,
                "radix": 2,
                "scale": 0,
                "interval": null,
                "foreignkey": null
            },
            "aliquota_cofins": {
                "position": 25,
                "name": "aliquota_cofins",
                "type": "numeric",
                "nullable": "NO",
                "maxlen": null,
                "precision": 18,
                "radix": 10,
                "scale": 6,
                "interval": null,
                "foreignkey": null
            },
            "valor_cofins": {
                "position": 26,
                "name": "valor_cofins",
                "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": "nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "nota"
                },
                {
                    "name": "serie",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "filial_nota"
                },
                {
                    "name": "nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "filial_nota"
                },
                {
                    "name": "filial_nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "filial_nota"
                },
                {
                    "name": "serie",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "nota"
                },
                {
                    "name": "filial_nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "nota"
                },
                {
                    "name": "serie",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "serie"
                },
                {
                    "name": "nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "serie"
                },
                {
                    "name": "filial_nota",
                    "to": "nfs_nota_fiscal",
                    "to_attribute": "serie"
                }
            ],
            "many-to-many": []
        },
        "foreignkeys": [
            {
                "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": "filial_nota"
            },
            {
                "column_name": "nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "filial_nota"
            },
            {
                "column_name": "filial_nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "filial_nota"
            },
            {
                "column_name": "serie",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "nota"
            },
            {
                "column_name": "filial_nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "nota"
            },
            {
                "column_name": "serie",
                "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": "filial_nota",
                "foreign_table_name": "nfs_nota_fiscal",
                "foreign_column_name": "serie"
            }
        ]
    }
}