ASAPCabinetFE
 
Loading...
Searching...
No Matches
vpsdb_metadata.h
Go to the documentation of this file.
1
9#ifndef VPSDB_METADATA_H
10#define VPSDB_METADATA_H
11
12#include <nlohmann/json.hpp>
13#include <string>
14#include <vector>
15
16namespace vpsdb {
17
18struct Url {
19 std::string url;
20 bool broken;
21};
22
23struct TableFile {
24 std::string id;
25 int64_t createdAt;
26 int64_t updatedAt;
27 std::vector<Url> urls;
28 std::vector<std::string> authors;
29 std::vector<std::string> features;
30 std::string tableFormat;
31 std::string comment;
32 std::string version;
33 std::string imgUrl;
34};
35
36struct TopperFile {
37 std::string id;
38 int64_t createdAt;
39 int64_t updatedAt;
40 std::vector<Url> urls;
41 std::vector<std::string> authors;
42 std::string version;
43};
44
46 std::string id;
47 int64_t updatedAt;
48 std::string manufacturer;
49 std::string name;
50 int year;
51 std::vector<std::string> theme;
52 std::vector<std::string> designers;
53 std::string type;
54 int players;
55 std::string ipdbUrl;
56 std::vector<TableFile> tableFiles;
57 std::vector<TableFile> b2sFiles;
58 std::vector<TableFile> wheelArtFiles;
59 std::vector<TopperFile> topperFiles;
60 int64_t lastCreatedAt;
61};
62
63struct TableIndex {
64 std::string id;
65 std::string name;
66 std::string manufacturer;
67 int year;
68};
69
70} // namespace vpsdb
71
72#endif // VPSDB_METADATA_H
Definition vpsdb_metadata.h:45
Definition vpsdb_metadata.h:23
Definition vpsdb_metadata.h:63
Definition vpsdb_metadata.h:36
Definition vpsdb_metadata.h:18