add reorder for column names

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-10-01 23:03:50 +03:00
committed by Daniel Hutzel
parent fc07f7ebba
commit e58ad84a2f
5 changed files with 81 additions and 71 deletions

View File

@@ -1,17 +1,17 @@
namespace sap.capire.media.store;
aspect NamedEntityAspect {
aspect Named {
key ID : Integer;
name : String(120);
}
aspect ContactInfoAspect {
aspect Persone {
key ID : Integer;
lastName : String(20);
firstName : String(40);
city : String(40);
state : String(40);
adress : String(70);
address : String(70);
country : String(40);
postalCode : String(10);
phone : String(24);
@@ -19,16 +19,16 @@ aspect ContactInfoAspect {
email : String(60);
}
entity MediaTypes : NamedEntityAspect {}
entity Genres : NamedEntityAspect {}
entity Playlists : NamedEntityAspect {}
entity MediaTypes : Named {}
entity Genres : Named {}
entity Playlists : Named {}
entity PlaylistTrack {
key playlist : Association to Playlists;
key track : Association to Tracks;
}
entity Artists : NamedEntityAspect {}
entity Artists : Named {}
entity Albums {
key ID : Integer;
@@ -36,61 +36,26 @@ entity Albums {
artist : Association to Artists;
}
entity Employees : ContactInfoAspect {
entity Employees : Persone {
reportsTo : Association to Employees;
title : String(20);
birthDate : DateTime;
hireDate : DateTime;
}
entity Customers : ContactInfoAspect {
entity Customers : Persone {
company : String(80);
supportRep : Association to Employees;
}
// keep columns order for importing data
// entity Employees {
// key ID : Integer;
// lastName : String(20);
// firstName : String(40);
// title : String(20);
// reportsTo : Association to Employees;
// birthDate : DateTime;
// hireDate : DateTime;
// adress : String(70);
// city : String(40);
// state : String(40);
// country : String(40);
// postalCode : String(10);
// phone : String(24);
// fax : String(24);
// email : String(60);
// }
// entity Customers {
// key ID : Integer;
// firstName : String(40);
// lastName : String(20);
// company : String(80);
// adress : String(70);
// city : String(40);
// state : String(40);
// country : String(40);
// postalCode : String(10);
// phone : String(24);
// fax : String(24);
// email : String(60);
// supportRep : Association to Employees;
// }
entity Invoices {
key ID : Integer;
customer : Association to Customers;
invoiceDate : DateTime;
billingAdress : String(70);
billingAddress : String(70);
billingCity : String(40);
billingState : String(40);
bilingCountry : String(40);
billingCountry : String(40);
billingPostalCode : String(40);
total : Decimal(10, 2);
}