Revize 4911f0ea
Přidáno uživatelem Matěj Zeman před asi 2 roky(ů)
server/sql_app/schemas.py | ||
---|---|---|
14 | 14 |
|
15 | 15 |
|
16 | 16 |
class DeviceLicense(DeviceLicenseCreate): |
17 |
""" |
|
18 |
Class used for creating and reading devices_licenses entries |
|
19 |
""" |
|
17 | 20 |
id: int |
18 | 21 |
|
19 | 22 |
class Config: |
... | ... | |
30 | 33 |
|
31 | 34 |
|
32 | 35 |
class USBLog(USBLogBase): |
36 |
""" |
|
37 |
Class used for creating and reading usb_logs entries |
|
38 |
""" |
|
33 | 39 |
id: int |
34 | 40 |
device_id: int |
35 | 41 |
pc_id: int |
... | ... | |
49 | 55 |
|
50 | 56 |
|
51 | 57 |
class Device(DeviceCreate): |
58 |
""" |
|
59 |
Class used for creating and reading devices entries |
|
60 |
""" |
|
52 | 61 |
id: int |
53 | 62 |
assigned: bool |
54 | 63 |
logs: List[USBLog] = [] |
... | ... | |
68 | 77 |
|
69 | 78 |
|
70 | 79 |
class LDLog(LDLogCreate): |
80 |
""" |
|
81 |
Class used for creating and reading ld_logs entries |
|
82 |
""" |
|
71 | 83 |
id: int |
72 | 84 |
head_id: int |
73 | 85 |
body_id: int |
... | ... | |
85 | 97 |
|
86 | 98 |
|
87 | 99 |
class BodyDevice(BodyDeviceCreate): |
100 |
""" |
|
101 |
Class used for creating and reading body_devices entries |
|
102 |
""" |
|
88 | 103 |
id: int |
89 | 104 |
logs: List[LDLog] = [] |
90 | 105 |
|
... | ... | |
101 | 116 |
|
102 | 117 |
|
103 | 118 |
class HeadDevice(HeadDeviceCreate): |
119 |
""" |
|
120 |
Class used for creating and reading head_devices entries |
|
121 |
""" |
|
104 | 122 |
id: int |
105 | 123 |
logs: List[LDLog] = [] |
106 | 124 |
|
... | ... | |
118 | 136 |
|
119 | 137 |
|
120 | 138 |
class PC(PCCreate): |
139 |
""" |
|
140 |
Class used for creating and reading pc entries |
|
141 |
""" |
|
121 | 142 |
id: int |
122 | 143 |
assigned: bool |
123 | 144 |
logs_pc: List[USBLog] = [] |
... | ... | |
135 | 156 |
|
136 | 157 |
|
137 | 158 |
class Team(TeamCreate): |
159 |
""" |
|
160 |
Class used for creating and reading team entries |
|
161 |
""" |
|
138 | 162 |
id: int |
139 | 163 |
pcs: List[PC] = [] |
140 | 164 |
|
... | ... | |
152 | 176 |
|
153 | 177 |
|
154 | 178 |
class License(LicenseCreate): |
179 |
""" |
|
180 |
Class used for creating and reading licenses entries |
|
181 |
""" |
|
155 | 182 |
id: int |
156 | 183 |
devices: List[DeviceLicense] = [] |
157 | 184 |
|
... | ... | |
160 | 187 |
|
161 | 188 |
|
162 | 189 |
class USBTempBase(BaseModel): |
190 |
""" |
|
191 |
Class used for reading data from keyman detecting client messages |
|
192 |
""" |
|
163 | 193 |
username: str |
164 | 194 |
hostname: str |
165 | 195 |
timestamp: str |
... | ... | |
180 | 210 |
|
181 | 211 |
|
182 | 212 |
class LDTempBase(BaseModel): |
213 |
""" |
|
214 |
Class used for reading data from debugger detecting client messages |
|
215 |
""" |
|
183 | 216 |
username: str |
184 | 217 |
hostname: str |
185 | 218 |
timestamp: str |
Také k dispozici: Unified diff
re #9577 Api code documentation.