forked from Betflix5/wilm-film
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jhipster-jdl_1.jdl
51 lines (39 loc) · 979 Bytes
/
jhipster-jdl_1.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
entity Video {
url String
}
entity VideoMetaData {
title String required,
genre String required,
uploadDate Instant required,
description String
}
entity Comment {
text String required maxlength(255),
postedAt Instant required
}
entity Like {
likedAt Instant required
}
entity Watched {
watchedAt Instant required
}
entity WatchLater {
// Define fields if necessary, e.g., addedAt Instant
}
relationship ManyToOne {
Comment{author} to User with builtInEntity,
Comment{video} to Video,
Like{user} to User with builtInEntity,
Like{video} to Video,
Video{uploader} to User with builtInEntity,
Watched{video} to Video,
WatchLater{video} to Video,
Watched{userProfile} to User with builtInEntity,
WatchLater{userProfile} to User with builtInEntity
}
relationship OneToOne {
Video{metaData} to VideoMetaData
}
paginate Video, Comment, Like, Watched, WatchLater with infinite-scroll
service all with serviceImpl
dto all with mapstruct