OpenSAP course officesupplies
This commit is contained in:
30
packages/officesupplies/db/schema.cds
Normal file
30
packages/officesupplies/db/schema.cds
Normal file
@@ -0,0 +1,30 @@
|
||||
namespace sap.capire.officesupplies;
|
||||
using { Currency } from '@sap/cds/common';
|
||||
|
||||
entity Products {
|
||||
@Common.Label : 'UUID'
|
||||
key ID : UUID;
|
||||
identifier : String @Common.Label : 'ID';
|
||||
title : localized String @( Common.Label : 'Name' );
|
||||
description : localized String;
|
||||
availability : Integer;
|
||||
storage_capacity: Integer;
|
||||
criticality : Integer;
|
||||
price : Decimal(9,2);
|
||||
currency : Currency;
|
||||
supplier : Association to Suppliers;
|
||||
image_url : String;
|
||||
}
|
||||
|
||||
entity Suppliers {
|
||||
key ID : UUID;
|
||||
identifier: String;
|
||||
name : String;
|
||||
phone : String;
|
||||
building : String;
|
||||
street : String @multiline;
|
||||
postCode : String;
|
||||
city : String;
|
||||
country : String;
|
||||
products : Composition of many Products on products.supplier = $self;
|
||||
}
|
||||
Reference in New Issue
Block a user