-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pather.html
183 lines (183 loc) · 4.75 KB
/
er.html
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div class="mermaid" id="er-diagram">
erDiagram
ActiveArea {
int id
string name
}
Category {
int id
string name
bool has_subcategory
int64 max_reservation_time
int64 max_reservation_units
}
EmailConfirm {
int id
timeDOTTime ttl
string token
string email
}
Equipment {
int id
string termsOfUse
string name
string title
int64 compensationCost
bool tech_issue
string condition
int64 inventoryNumber
string supplier
string receiptDate
int64 maximumDays
string description
}
EquipmentStatus {
int id
string comment
timeDOTTime created_at
timeDOTTime updated_at
timeDOTTime start_date
timeDOTTime end_date
}
EquipmentStatusName {
int id
string name
}
Group {
int id
}
Order {
int id
string description
int quantity
timeDOTTime rent_start
timeDOTTime rent_end
timeDOTTime created_at
bool is_first
}
OrderStatus {
int id
string comment
timeDOTTime current_date
}
OrderStatusName {
int id
string status
}
PasswordReset {
int id
timeDOTTime ttl
string token
}
Permission {
int id
string name
}
PetKind {
int id
string name
}
PetSize {
int id
string name
string size
bool is_universal
}
Photo {
string id
string fileName
LBRACKRBRACKbyte content
}
RegistrationConfirm {
int id
timeDOTTime ttl
string token
}
Role {
int id
string name
string slug
}
Subcategory {
int id
string name
int64 max_reservation_time
int64 max_reservation_units
}
Token {
int id
string accessToken
string refreshToken
}
User {
int id
string login
string email
string password
string name
string surname
string patronymic
string passport_series
string passport_number
string passport_authority
timeDOTTime passport_issue_date
string phone
bool is_readonly
userDOTType type
string org_name
string website
string vk
bool is_registration_confirmed
bool is_deleted
}
ActiveArea }o--o{ User : "users/active_areas"
Category |o--o{ Equipment : "equipments/category"
Category |o--o{ Subcategory : "subcategories/category"
Equipment |o--o{ EquipmentStatus : "equipment_status/equipments"
Equipment }o--o{ Order : "order/equipments"
EquipmentStatusName |o--o{ Equipment : "equipments/current_status"
EquipmentStatusName |o--o{ EquipmentStatus : "equipment_status/equipment_status_name"
Group }o--o{ User : "users/groups"
Group }o--o{ Permission : "permissions/groups"
Order |o--o{ OrderStatus : "order_status/order"
Order |o--o{ EquipmentStatus : "equipment_status/order"
OrderStatusName |o--o{ Order : "orders/current_status"
OrderStatusName |o--o{ OrderStatus : "order_status/order_status_name"
PetKind }o--o{ Equipment : "equipments/petKinds"
PetSize |o--o{ Equipment : "equipments/pet_size"
Photo |o--o{ Equipment : "equipments/photo"
Role |o--o{ User : "users/role"
Subcategory |o--o{ Equipment : "equipments/subcategory"
User |o--o{ Token : "tokens/owner"
User |o--o{ Order : "order/users"
User |o--o{ OrderStatus : "order_status/users"
User |o--o{ PasswordReset : "password_reset/users"
User |o--o{ RegistrationConfirm : "registration_confirm/users"
User |o--o{ EmailConfirm : "email_confirm/users"
</div>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/panzoom.min.js"></script>
<script>
mermaid.mermaidAPI.initialize({
startOnLoad: true,
});
var observer = new MutationObserver((event) => {
document.querySelectorAll('text[id^=text-entity]').forEach(text => {
text.textContent = text.textContent.replace('DOT', '.');
text.textContent = text.textContent.replace('STAR', '*');
text.textContent = text.textContent.replace('LBRACK', '[');
text.textContent = text.textContent.replace('RBRACK', ']');
});
observer.disconnect();
panzoom(document.getElementById('er-diagram'));
});
observer.observe(document.getElementById('er-diagram'), { attributes: true, childList: true });
</script>
</body>
</html>