-
Notifications
You must be signed in to change notification settings - Fork 4
/
todo-demo.jdl
53 lines (41 loc) · 899 Bytes
/
todo-demo.jdl
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
entity TodoList {
title String required unique minlength(3),
}
/** Todo Task */
entity Todo {
/** Todo task name */
name String required minlength(3),
description String minlength(3),
completed Boolean required,
progress Integer min(0),
order Integer min(0),
priority Priority,
dueDate Instant
}
entity Category {
name String required unique minlength(3),
description String required minlength(3)
}
entity Tag {
name String required unique minlength(3),
}
enum Priority {
HIGH,
MEDIUM,
LOW
}
relationship OneToOne {
TodoList{user(login)} to User{todoList(title)}
}
relationship ManyToOne {
Todo{category(name)} to Category
}
relationship OneToMany {
TodoList{todos(name)} to Todo
}
relationship ManyToMany {
Todo{tag(name)} to Tag{todo}
}
dto * with mapstruct
paginate Todo, Category, Tag with infinite-scroll
service * with serviceImpl