1 Star 0 Fork 0

andrew7baker/jdl-samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
northwind-jdl.jh 4.98 KB
一键复制 编辑 原始数据 按行查看 历史
Marcelo Boveto Shima 提交于 2020-06-01 12:03 . Add database to samples.
/*
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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/andrew7baker/jdl-samples.git
[email protected]:andrew7baker/jdl-samples.git
andrew7baker
jdl-samples
jdl-samples
master

搜索帮助