-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
arcadeanalytics.jh
158 lines (132 loc) · 2.6 KB
/
arcadeanalytics.jh
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
entity Workspace {
name String required,
description String
}
entity Company {
name String required,
description String
}
entity Contract {
name String required,
description String,
type ContractType,
maxWorkspaces Integer,
maxDashboards Integer,
maxWidgets Integer,
maxTraversal Integer,
maxElements Integer,
maxPower Integer,
ha Boolean
}
enum ContractType {
FREE, SILVER, GOLD, CUSTOM
}
entity Dashboard {
name String required,
description String,
layout TextBlob
}
entity Widget {
name String required,
type String,
hasSnapshot Boolean
}
entity WidgetSnapshot {
createdAt LocalDate,
data TextBlob
}
enum DataSourceType {
ORIENTDB,
GREMLIN_ORIENTDB,
NEO4J,
NEO4J_MEMGRAPH,
JANUSGRAPH,
TIGERGRAPH,
NEPTUPE,
COSMOSDB,
RDBMS_ORACLE,
RDBMS_MSQSLSERVER,
RDBMS_MYSQL,
RDBMS_POSTGRESQL,
RDBMS_HSQL,
RDF,
ARANGO
}
entity DataSource {
name String required,
description String,
type DataSourceType,
indexing IndexingStatus,
server String,
port Integer,
username String,
password String,
remote Boolean,
gateway String,
sshUser String,
sshPort Integer,
skipSslValidation Boolean,
enableSsl Boolean
}
enum IndexingStatus {
NOT_INDEXED, INDEXING, INDEXED
}
entity DataSourceIndex {
startedAt LocalDate required,
endedAt LocalDate,
documents Long,
status Boolean,
report String
}
entity DataSet {
name String required
}
entity DataSetOperation {
createdAt LocalDate required,
operation String required
}
enum MediaCategory {
BROWSERS,
BUILDINGS,
BUSINESS,
CHARACTERS,
COMMUNICATION,
ENTERTAINMENT,
GEO,
ICONS,
PEOPLE,
PICTURES,
SCIENCE,
TECHNOLOGY,
VEHICLES,
MISCELLANEOUS
}
entity Media {
name String required,
description String,
category MediaCategory,
file Blob
}
entity ArcadeUser {
}
relationship OneToOne {
Widget{dataSet} to DataSet{widget}
ArcadeUser{user} to User
}
relationship OneToMany {
Workspace{dashboard} to Dashboard{workspace},
Workspace{dataSource} to DataSource{workspace},
Dashboard{widget} to Widget{dashboard},
DataSource{dataSourceIndex} to DataSourceIndex{dataSource},
Widget{snapshot} to WidgetSnapshot{widget},
DataSet{operations} to DataSetOperation{dataset},
Company{users} to ArcadeUser{company},
ArcadeUser{workspaces} to Workspace{user}
}
relationship ManyToOne {
Company{contract} to Contract,
Widget{dataSource} to DataSource
}
dto * with mapstruct
paginate * with pagination
service Media, Widget with serviceClass