-
-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathnorthwind-jdl.jh
224 lines (204 loc) · 4.98 KB
/
northwind-jdl.jh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/*
northwind-jdl.jh is a JHipster jdl file based on classic Northwind Database.
Will add relationships soon.
3/6/2020
*/
application {
config {
prodDatabaseType postgresql,
}
}
entity Customer {
id Integer required,
company String maxlength(50),
lastName String maxlength(50),
firstName String maxlength(50),
emailAddress String maxlength(50),
jobTitle String maxlength(50),
businessPhone String maxlength(25),
homePhone String maxlength(25),
mobilePhone String maxlength(25),
faxNumber String maxlength(25),
address TextBlob,
city String maxlength(50),
stateProvince String maxlength(50),
zipPostalCode String maxlength(15),
countryRegion String maxlength(50),
webPage TextBlob,
notes TextBlob,
attachments Blob
}
entity Employee {
id Integer required,
company String maxlength(50),
lastName String maxlength(50),
firstName String maxlength(50),
emailAddress String maxlength(50),
jobTitle String maxlength(50),
businessPhone String maxlength(25),
homePhone String maxlength(25),
mobilePhone String maxlength(25),
faxNumber String maxlength(25),
address TextBlob,
city String maxlength(50),
stateProvince String maxlength(50),
zipPostalCode String maxlength(15),
countryRegion String maxlength(50),
webPage TextBlob,
notes TextBlob,
attachments Blob
}
entity InventoryTransactionType {
id Boolean required,
typeName String required maxlength(50)
}
entity InventoryTransaction {
id Integer required,
transactionCreatedDate Instant,
transactionModifiedDate Instant,
quantity Integer required,
comments String maxlength(255)
}
entity Invoice {
id Integer required,
invoiceDate Instant,
dueDate Instant,
tax BigDecimal,
shipping BigDecimal,
amountDue BigDecimal
}
entity OrderDetailer {
id Integer required,
quantity BigDecimal required,
unitPrice BigDecimal,
discount Double required,
dateAllocated Instant,
purchaseOrderId Integer,
inventoryId Integer
}
entity OrderDetailStatu {
id Integer required,
statusName String required maxlength(50)
}
entity Nworder {
id Integer required,
orderDate Instant,
shippedDate Instant,
shipName String maxlength(50),
shipAddress TextBlob,
shipCity String maxlength(50),
shipStateProvince String maxlength(50),
shipZipPostalCode String maxlength(50),
shipCountryRegion String maxlength(50),
shippingFee BigDecimal,
taxes BigDecimal,
paymentType String maxlength(50),
paidDate Instant,
notes TextBlob,
taxRate Double
}
entity OrderStatu {
id Boolean required,
statusName String required maxlength(50)
}
entity OrderTaxStatu {
id Boolean required,
taxStatusName String required maxlength(50)
}
entity Privilege {
id Integer required,
privilegeName String maxlength(50)
}
entity Product {
supplierIds TextBlob,
id Integer required,
productCode String maxlength(25),
productName String maxlength(50),
description TextBlob,
standardCost BigDecimal,
listPrice BigDecimal required,
reorderLevel Integer,
targetLevel Integer,
quantityPerUnit String maxlength(50),
discontinued Boolean required,
minimumReorderQuantity Integer,
category String maxlength(50),
attachments Blob
}
entity PurchaseOrderDetailer {
id Integer required,
quantity BigDecimal required,
unitCost BigDecimal required,
dateReceived Instant,
postedToInventory Boolean required
}
entity PurchaseOrderStatu {
id Integer required,
status String maxlength(50)
}
entity PurchaseOrder {
id Integer required,
submittedDate Instant,
creationDate Instant,
expectedDate Instant,
shippingFee BigDecimal required,
taxes BigDecimal required,
paymentDate Instant,
paymentAmount BigDecimal,
paymentMethod String maxlength(50),
notes TextBlob,
approvedBy Integer,
approvedDate Instant,
submittedBy Integer
}
entity SalesReport {
groupBy String required maxlength(50),
display String maxlength(50),
title String maxlength(50),
filterRowSource TextBlob,
defaultFlag Boolean required
}
entity Shipper {
id Integer required,
company String maxlength(50),
lastName String maxlength(50),
firstName String maxlength(50),
emailAddress String maxlength(50),
jobTitle String maxlength(50),
businessPhone String maxlength(25),
homePhone String maxlength(25),
mobilePhone String maxlength(25),
faxNumber String maxlength(25),
address TextBlob,
city String maxlength(50),
stateProvince String maxlength(50),
zipPostalCode String maxlength(15),
countryRegion String maxlength(50),
webPage TextBlob,
notes TextBlob,
attachments Blob
}
entity Strings {
stringId Integer required,
stringData String maxlength(255)
}
entity Supplier {
id Integer required,
company String maxlength(50),
lastName String maxlength(50),
firstName String maxlength(50),
emailAddress String maxlength(50),
jobTitle String maxlength(50),
businessPhone String maxlength(25),
homePhone String maxlength(25),
mobilePhone String maxlength(25),
faxNumber String maxlength(25),
address TextBlob,
city String maxlength(50),
stateProvince String maxlength(50),
zipPostalCode String maxlength(15),
countryRegion String maxlength(50),
webPage TextBlob,
notes TextBlob,
attachments Blob
}