{
    "definitions": {
        "cds_api_batch_srv": {
            "kind": "service"
        },
        "cds_api_batch_srv.Batch": {
            "kind": "entity",
            "@cds.persistence.skip": true,
            "elements": {
                "Material": {
                    "key": true,
                    "type": "cds.String",
                    "length": 16
                },
                "BatchIdentifyingPlant": {
                    "key": true,
                    "type": "cds.String",
                    "length": 4
                },
                "Batch": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "BatchIsMarkedForDeletion": {
                    "type": "cds.Boolean"
                },
                "MatlBatchIsInRstrcdUseStock": {
                    "type": "cds.Boolean"
                },
                "Supplier": {
                    "type": "cds.String",
                    "length": 10
                },
                "BatchBySupplier": {
                    "type": "cds.String",
                    "length": 15
                },
                "CountryOfOrigin": {
                    "type": "cds.String",
                    "length": 3
                },
                "RegionOfOrigin": {
                    "type": "cds.String",
                    "length": 3
                },
                "MatlBatchAvailabilityDate": {
                    "type": "cds.Date"
                },
                "ShelfLifeExpirationDate": {
                    "type": "cds.Date"
                },
                "ManufactureDate": {
                    "type": "cds.Date"
                },
                "FreeDefinedDate1": {
                    "type": "cds.Date"
                },
                "FreeDefinedDate2": {
                    "type": "cds.Date"
                },
                "FreeDefinedDate3": {
                    "type": "cds.Date"
                },
                "FreeDefinedDate4": {
                    "type": "cds.Date"
                },
                "FreeDefinedDate5": {
                    "type": "cds.Date"
                },
                "FreeDefinedDate6": {
                    "type": "cds.Date"
                },
                "CreationDateTime": {
                    "type": "cds.Timestamp"
                },
                "LastChangeDateTime": {
                    "type": "cds.Timestamp"
                },
                "BatchExtWhseMgmtInternalId": {
                    "type": "cds.UUID"
                },
                "to_BatchCharc": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.BatchCharc",
                    "cardinality": {
                        "max": "*"
                    },
                    "on": [
                        {
                            "ref": [
                                "to_BatchCharc",
                                "Batch"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Batch"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchCharc",
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchCharc",
                                "Material"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Material"
                            ]
                        }
                    ]
                },
                "to_BatchClass": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.BatchClass",
                    "on": [
                        {
                            "ref": [
                                "to_BatchClass",
                                "Batch"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Batch"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchClass",
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchClass",
                                "Material"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Material"
                            ]
                        }
                    ]
                },
                "to_BatchPlant": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.BatchPlant",
                    "cardinality": {
                        "max": "*"
                    },
                    "on": [
                        {
                            "ref": [
                                "to_BatchPlant",
                                "Batch"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Batch"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchPlant",
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchPlant",
                                "Material"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Material"
                            ]
                        }
                    ]
                }
            }
        },
        "cds_api_batch_srv.BatchCharc": {
            "kind": "entity",
            "@cds.persistence.skip": true,
            "elements": {
                "Material": {
                    "key": true,
                    "type": "cds.String",
                    "length": 16
                },
                "BatchIdentifyingPlant": {
                    "key": true,
                    "type": "cds.String",
                    "length": 4
                },
                "Batch": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "CharcInternalID": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "LastChangeDateTime": {
                    "type": "cds.Timestamp"
                },
                "to_Batch": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.Batch"
                },
                "to_BatchCharcValue": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.BatchCharcValue",
                    "cardinality": {
                        "max": "*"
                    },
                    "on": [
                        {
                            "ref": [
                                "to_BatchCharcValue",
                                "CharcInternalID"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "CharcInternalID"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchCharcValue",
                                "Batch"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Batch"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchCharcValue",
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "BatchIdentifyingPlant"
                            ]
                        },
                        "and",
                        {
                            "ref": [
                                "to_BatchCharcValue",
                                "Material"
                            ]
                        },
                        "=",
                        {
                            "ref": [
                                "Material"
                            ]
                        }
                    ]
                }
            }
        },
        "cds_api_batch_srv.BatchCharcValue": {
            "kind": "entity",
            "@cds.persistence.skip": true,
            "elements": {
                "Material": {
                    "key": true,
                    "type": "cds.String",
                    "length": 16
                },
                "BatchIdentifyingPlant": {
                    "key": true,
                    "type": "cds.String",
                    "length": 4
                },
                "Batch": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "CharcInternalID": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "CharcValuePositionNumber": {
                    "key": true,
                    "type": "cds.String",
                    "length": 3
                },
                "CharcValueDependency": {
                    "type": "cds.String",
                    "length": 1
                },
                "CharcValue": {
                    "type": "cds.String",
                    "length": 70
                },
                "CharcFromNumericValue": {
                    "type": "cds.Double"
                },
                "CharcFromNumericValueUnit": {
                    "type": "cds.String",
                    "length": 3
                },
                "CharcToNumericValue": {
                    "type": "cds.Double"
                },
                "CharcToNumericValueUnit": {
                    "type": "cds.String",
                    "length": 3
                },
                "CharcFromDecimalValue": {
                    "type": "cds.Decimal",
                    "precision": 31,
                    "scale": 14
                },
                "CharcToDecimalValue": {
                    "type": "cds.Decimal",
                    "precision": 31,
                    "scale": 14
                },
                "CharcFromAmount": {
                    "type": "cds.Decimal",
                    "precision": 24,
                    "scale": 3
                },
                "CharcToAmount": {
                    "type": "cds.Decimal",
                    "precision": 24,
                    "scale": 3
                },
                "Currency": {
                    "type": "cds.String",
                    "length": 5
                },
                "CharcFromDate": {
                    "type": "cds.Date"
                },
                "CharcToDate": {
                    "type": "cds.Date"
                },
                "CharcFromTime": {
                    "type": "cds.Time"
                },
                "CharcToTime": {
                    "type": "cds.Time"
                },
                "CharacteristicAuthor": {
                    "type": "cds.String",
                    "length": 1
                },
                "LastChangeDateTime": {
                    "type": "cds.Timestamp"
                },
                "to_BatchCharc": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.BatchCharc"
                }
            }
        },
        "cds_api_batch_srv.BatchClass": {
            "kind": "entity",
            "@cds.persistence.skip": true,
            "elements": {
                "Material": {
                    "key": true,
                    "type": "cds.String",
                    "length": 16
                },
                "BatchIdentifyingPlant": {
                    "key": true,
                    "type": "cds.String",
                    "length": 4
                },
                "Batch": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "ClassInternalID": {
                    "type": "cds.String",
                    "length": 10
                },
                "LastChangeDateTime": {
                    "type": "cds.Timestamp"
                },
                "to_Batch": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.Batch"
                }
            }
        },
        "cds_api_batch_srv.BatchPlant": {
            "kind": "entity",
            "@cds.persistence.skip": true,
            "elements": {
                "Material": {
                    "key": true,
                    "type": "cds.String",
                    "length": 16
                },
                "Batch": {
                    "key": true,
                    "type": "cds.String",
                    "length": 10
                },
                "Plant": {
                    "key": true,
                    "type": "cds.String",
                    "length": 4
                },
                "BatchIdentifyingPlant": {
                    "type": "cds.String",
                    "length": 4
                },
                "InventoryValuationType": {
                    "type": "cds.String",
                    "length": 10
                },
                "LastChangeDateTime": {
                    "type": "cds.Timestamp"
                },
                "to_Batch": {
                    "type": "cds.Association",
                    "target": "cds_api_batch_srv.Batch"
                }
            }
        }
    }
}