-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema.txt
40 lines (40 loc) · 1.18 KB
/
schema.txt
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
Aliases:
{
"_id": "unique_id",
"alias": "alias_name",
"original": "true_name"
}
GET query_format: {"alias": "alias_name"}
===================================================
Characters:
{
"_id": "unique_id",
"character_id": "character_id",
"user": "discord_user_id",
"name": "character_name",
"hp": max_hp (int),
"attack": attack (int),
"armor_class": armor_class (int),
"speed": speed (int),
"level": character_level (int),
"gold": character_gold (int),
"stats": {
"stat": stat_value (int),
"stat2": {
"base": stat_value (int),
"substat": substat_value (int)
}
}
}
GET query_format: {"character_id": "character_id"}
===================================================
Users:
{
"_id": "unique_id",
"server": "discord_server_id",
"user": "discord_user_id",
"active": "currently_active_character_id",
"characters": ["list", "of", "character_ids"]
}
GET query_format: {"server": "server_id", "user": "user_id"}
===================================================