odata-v4-server
Version:
OData V4 Server
206 lines • 8.05 kB
JavaScript
;
module.exports = {
"version": "4.0",
"dataServices": {
"schema": [
{
"namespace": "Northwind",
"entityType": [
{
"name": "Product",
"key": [
{
"propertyRef": [
{
"name": "_id"
}
]
}
],
"property": [
{
"name": "QuantityPerUnit",
"type": "Edm.String",
"nullable": "false"
},
{
"name": "UnitPrice",
"type": "Edm.Decimal",
"nullable": "false"
},
{
"name": "_id",
"type": "Edm.String",
"nullable": "false"
},
{
"name": "Name",
"type": "Edm.String",
"nullable": "false"
},
{
"name": "CategoryId",
"type": "Edm.String",
"nullable": "false"
},
{
"name": "Discontinued",
"type": "Edm.Boolean",
"nullable": "false"
}
]
},
{
"name": "Category",
"key": [
{
"propertyRef": [
{
"name": "_id"
}
]
}
],
"property": [
{
"name": "Description",
"type": "Edm.String",
"nullable": "false"
},
{
"name": "_id",
"type": "Edm.String",
"nullable": "false"
},
{
"name": "Name",
"type": "Edm.String",
"nullable": "false"
}
]
}
],
"annotations": [
{
"target": "Northwind.Product/_id",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Product identifier"
},
{
"term": "UI.ControlHint",
"string": "ReadOnly"
}
]
},
{
"target": "Northwind.Category/_id",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Category identifier"
},
{
"term": "UI.ControlHint",
"string": "ReadOnly"
}
]
},
{
"target": "Northwind.Category",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Categories"
}
]
},
{
"target": "Northwind.Category/Name",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Category name"
},
{
"term": "UI.ControlHint",
"string": "ShortText"
}
]
},
{
"target": "Northwind.Product",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Products"
}
]
},
{
"target": "Northwind.Product/Name",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Product title"
},
{
"term": "UI.ControlHint",
"string": "ShortText"
}
]
},
{
"target": "Northwind.Product/QuantityPerUnit",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Product English name"
},
{
"term": "UI.ControlHint",
"string": "ShortText"
}
]
},
{
"target": "Northwind.Product/UnitPrice",
"annotation": [
{
"term": "UI.DisplayName",
"string": "Unit price of product"
},
{
"term": "UI.ControlHint",
"string": "Decimal"
}
]
},
]
},
{
"namespace": "JayStack",
"action": {
"name": "initDb"
},
"entityContainer": {
"name": "NorthwindContext",
"entitySet": [{
"name": "Products",
"entityType": "Northwind.Product"
},
{
"name": "Categories",
"entityType": "Northwind.Category"
}],
"actionImport": {
"name": "initDb",
"action": "JayStack.initDb"
}
}
}
]
}
};
//# sourceMappingURL=schema.js.map