1 Star 0 Fork 0

andrew7baker/jdl-samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bug-tracker.jh 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
Marcelo Shima 提交于 2020-09-05 11:26 . Add entities to bug-tracker.jh
entity Project {
name String
}
entity Label {
label String required minlength(3)
}
application {
config {
prodDatabaseType postgresql,
}
entities *
}
entity Ticket {
title String required
description String
dueDate LocalDate
date ZonedDateTime
status Status
type Type
priority Priority
}
entity Attachment {
name String required minlength(3)
file Blob
}
relationship ManyToMany {
Ticket{label(label)} to Label{ticket}
}
relationship ManyToOne {
Ticket{project(name)} to Project
Ticket{assignedTo(login)} to User
Ticket{reportedBy(login)} to User
Comment{login} to User
}
relationship OneToMany {
Comment{parent} to Comment{child}
Ticket to Attachment
}
enum Status {
OPEN("Open")
WAITING_FOR_RESPONSE("Waiting for Customer Response")
CLOSED("Closed")
DUPLICATE("Duplicate")
IN_PROGRESS("In Progress")
REOPENED("Reopened")
CANNOT_REPRODUCE("Cannot Reproduce")
SOLVED("Solved")
WONT_IMPLEMENT("Won't Implement")
VERIFIED("Verified")
}
enum Type {
BUG("Bug"),
FEATURE("Feature")
}
enum Priority {
HIGHEST("Highest")
HIGHER("Higher")
HIGH("High")
NORMAL("Normal")
LOW("Low")
LOWER("Lower")
LOWERST("Lowest")
}
entity Comment {
date ZonedDateTime
text String
}
paginate Ticket with pagination
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/andrew7baker/jdl-samples.git
[email protected]:andrew7baker/jdl-samples.git
andrew7baker
jdl-samples
jdl-samples
master

搜索帮助