-
Notifications
You must be signed in to change notification settings - Fork 0
/
myconfg.jdl
57 lines (41 loc) · 848 Bytes
/
myconfg.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
54
55
56
entity AssetType {
name String
}
entity AssetTypeQuantity {
quantity Integer
}
relationship ManyToOne {
AssetType{assetType} to AssetTypeQuantity
}
entity ApplicationUser {}
relationship OneToOne {
ApplicationUser{internalUser} to User
}
relationship ManyToOne {
ApplicationUser{organisation} to Organisation{applicationUser}
}
entity Organisation {
name String
credits Integer
buyOrderCredits Integer
}
relationship OneToMany {
Organisation to AssetTypeQuantity{ownedAssets}
}
entity Trade {
tradeStatus TradeStatus
tradeType TradeType
assetQty Integer
credits Integer
}
relationship ManyToOne {
Trade to AssetType{assetType},
Trade to Organisation{organisation},
Trade to ApplicationUser{user},
}
enum TradeStatus {
PENDING, PART_FULFILLED, PART_FULFILLED
}
enum TradeType {
BUY, SELL
}