namespace com.sap.cds.espm.db;
using
{
cuid,
managed,
temporal
}
from '@sap/cds/common';
entity Customers : cuid, managed
{
name : String;
officialName : String;
companyName : String;
address1 : String;
address2 : String;
industryRanking1 : String;
industryRanking2 : String;
industryRanking3 : String;
sector1 : String;
sector2 : String;
sector3 : String;
revenue : Decimal;
forecast1 : Integer;
forecast2 : Integer;
payment1 : String;
payment2 : String;
payment3 : String;
vertical1 : String;
vertical2 : String;
certical3 : String;
}
entity Orders : cuid, managed
{
name : String;
name1 : String;
name2 : String;
paymentMethod1 : String;
paymentMethod2 : String;
deliveryAddress1 : String;
deliveryAddress2 : String;
deliveryAddress3 : String;
total1 : Double;
total2 : Double;
}
aspect OrderItems : cuid, managed
{
name1 : String;
name2 : String;
name3 : String;
listPrice1 : String;
actualPrice1 : String;
pic1 : String;
pic2 : String;
pic3 : String;
}
entity Products : cuid, managed
{
name : String;
officialName : String;
longName1 : String;
longName2 : String;
title1 : String;
title2 : String;
image1 : String;
image2 : String;
manufacture : String;
isOem : Boolean;
validTo : Date;
validTo2 : Date;
}
entity ProductDetails : temporal
{
internalName1 : String;
internalName2 : String;
internalName3 : String;
designDate : Date;
designDate2 : Date;
detail1 : String;
detail2 : String;
detail3 : String;
}
entity Customers : cuid, managed
{
name : String;
officialName : String;
companyName : String;
address1 : String;
address2 : String;
industryRanking1 : String;
industryRanking2 : String;
industryRanking3 : String;
sector1 : String;
sector2 : String;
sector3 : String;
revenue : Decimal;
forecast1 : Integer;
forecast2 : Integer;
payment1 : String;
payment2 : String;
payment3 : String;
vertical1 : String;
vertical2 : String;
certical3 : String;
orders : Association to many Orders on orders.customers = $self;
}
entity Orders : cuid, managed
{
name : String;
name1 : String;
name2 : String;
paymentMethod1 : String;
paymentMethod2 : String;
deliveryAddress1 : String;
deliveryAddress2 : String;
deliveryAddress3 : String;
total1 : Double;
total2 : Double;
customers : Association to one Customers;
}
entity Orders : cuid, managed
{
name : String;
name1 : String;
name2 : String;
paymentMethod1 : String;
paymentMethod2 : String;
deliveryAddress1 : String;
deliveryAddress2 : String;
deliveryAddress3 : String;
total1 : Double;
total2 : Double;
customers : Association to one Customers;
orderItems : Composition of many OrderItems;
}
aspect OrderItems : cuid, managed
{
name1 : String;
name2 : String;
name3 : String;
listPrice1 : String;
actualPrice1 : String;
pic1 : String;
pic2 : String;
pic3 : String;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
30 | |
16 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 |