1diesel::table! {
4 auth_group (id) {
5 id -> Integer,
6 name -> Text,
7 }
8}
9
10diesel::table! {
11 auth_group_permissions (id) {
12 id -> Integer,
13 group_id -> Integer,
14 permission_id -> Integer,
15 }
16}
17
18diesel::table! {
19 auth_permission (id) {
20 id -> Integer,
21 content_type_id -> Integer,
22 codename -> Text,
23 name -> Text,
24 }
25}
26
27diesel::table! {
28 auth_user (id) {
29 id -> Integer,
30 password -> Text,
31 last_login -> Nullable<Timestamp>,
32 is_superuser -> Bool,
33 username -> Text,
34 last_name -> Text,
35 email -> Text,
36 is_staff -> Bool,
37 is_active -> Bool,
38 date_joined -> Timestamp,
39 first_name -> Text,
40 }
41}
42
43diesel::table! {
44 auth_user_groups (id) {
45 id -> Integer,
46 user_id -> Integer,
47 group_id -> Integer,
48 }
49}
50
51diesel::table! {
52 auth_user_user_permissions (id) {
53 id -> Integer,
54 user_id -> Integer,
55 permission_id -> Integer,
56 }
57}
58
59diesel::table! {
60 django_admin_log (id) {
61 id -> Integer,
62 object_id -> Nullable<Text>,
63 object_repr -> Text,
64 action_flag -> SmallInt,
65 change_message -> Text,
66 content_type_id -> Nullable<Integer>,
67 user_id -> Integer,
68 action_time -> Timestamp,
69 }
70}
71
72diesel::table! {
73 django_content_type (id) {
74 id -> Integer,
75 app_label -> Text,
76 model -> Text,
77 }
78}
79
80diesel::table! {
81 django_migrations (id) {
82 id -> Integer,
83 app -> Text,
84 name -> Text,
85 applied -> Timestamp,
86 }
87}
88
89diesel::table! {
90 django_session (session_key) {
91 session_key -> Text,
92 session_data -> Text,
93 expire_date -> Timestamp,
94 }
95}
96
97diesel::table! {
98 tof_db_dsicard (dsi_id) {
99 dsi_id -> SmallInt,
100 j1_rat_id -> Nullable<SmallInt>,
101 j2_rat_id -> Nullable<SmallInt>,
102 j3_rat_id -> Nullable<SmallInt>,
103 j4_rat_id -> Nullable<SmallInt>,
104 j5_rat_id -> Nullable<SmallInt>,
105 }
106}
107
108diesel::table! {
109 tof_db_run (run_id) {
110 run_id -> BigInt,
111 runtime_secs -> Nullable<BigInt>,
112 calib_before -> Nullable<Bool>,
113 shifter -> Nullable<SmallInt>,
114 run_type -> Nullable<SmallInt>,
115 run_path -> Nullable<Text>,
116 }
117}
118
119diesel::table! {
120 tof_db_trackerstrip (strip_id) {
121 strip_id -> Integer,
122 layer -> Integer,
123 row -> Integer,
124 module -> Integer,
125 channel -> Integer,
126 global_pos_x_l0 -> Float,
127 global_pos_y_l0 -> Float,
128 global_pos_z_l0 -> Float,
129 global_pos_x_det_l0 -> Float,
130 global_pos_y_det_l0 -> Float,
131 global_pos_z_det_l0 -> Float,
132 principal_x -> Float,
133 principal_y -> Float,
134 principal_z -> Float,
135 volume_id -> BigInt,
136 }
137}
138
139diesel::table! {
140 tof_db_localtriggerboard (board_id) {
141 board_id -> SmallInt,
142 dsi -> Nullable<SmallInt>,
143 j -> Nullable<SmallInt>,
144 rat -> Nullable<SmallInt>,
145 ltb_id -> Nullable<SmallInt>,
146 cable_len -> Float,
147 paddle1_id -> Nullable<SmallInt>,
148 paddle2_id -> Nullable<SmallInt>,
149 paddle3_id -> Nullable<SmallInt>,
150 paddle4_id -> Nullable<SmallInt>,
151 paddle5_id -> Nullable<SmallInt>,
152 paddle6_id -> Nullable<SmallInt>,
153 paddle7_id -> Nullable<SmallInt>,
154 paddle8_id -> Nullable<SmallInt>,
155 }
156}
157
158diesel::table! {
159 tof_db_mtbchannel (mtb_ch) {
160 mtb_ch -> BigInt,
161 dsi -> Nullable<SmallInt>,
162 j -> Nullable<SmallInt>,
163 ltb_id -> Nullable<SmallInt>,
164 ltb_ch -> Nullable<SmallInt>,
165 rb_id -> Nullable<SmallInt>,
166 rb_ch -> Nullable<SmallInt>,
167 mtb_link_id -> Nullable<SmallInt>,
168 paddle_id -> Nullable<SmallInt>,
169 paddle_isA -> Nullable<Bool>,
170 hg_ch -> Nullable<SmallInt>,
171 lg_ch -> Nullable<SmallInt>,
172 }
173}
174
175diesel::table! {
176 tof_db_paddle (paddle_id) {
177 paddle_id -> SmallInt,
178 volume_id -> BigInt,
179 panel_id -> SmallInt,
180 mtb_link_id -> SmallInt,
181 rb_id -> SmallInt,
182 rb_chA -> SmallInt,
183 rb_chB -> SmallInt,
184 ltb_id -> SmallInt,
185 ltb_chA -> SmallInt,
186 ltb_chB -> SmallInt,
187 pb_id -> SmallInt,
188 pb_chA -> SmallInt,
189 pb_chB -> SmallInt,
190 cable_len -> Float,
191 dsi -> SmallInt,
192 j_rb -> SmallInt,
193 j_ltb -> SmallInt,
194 height -> Float,
195 width -> Float,
196 length -> Float,
197 normal_x -> Float,
198 normal_y -> Float,
199 normal_z -> Float,
200 global_pos_x_l0 -> Float,
201 global_pos_y_l0 -> Float,
202 global_pos_z_l0 -> Float,
203 global_pos_x_l0_A -> Float,
204 global_pos_y_l0_A -> Float,
205 global_pos_z_l0_A -> Float,
206 global_pos_x_l0_B -> Float,
207 global_pos_y_l0_B -> Float,
208 global_pos_z_l0_B -> Float,
209 coax_cable_time -> Float,
210 harting_cable_time -> Float,
211 }
212}
213
214diesel::table! {
215 tof_db_panel (panel_id) {
216 panel_id -> SmallInt,
217 description -> Text,
218 normal_x -> SmallInt,
219 normal_y -> SmallInt,
220 normal_z -> SmallInt,
221 dw_paddle -> Nullable<SmallInt>,
222 dh_paddle -> Nullable<SmallInt>,
223 paddle0_id -> Nullable<SmallInt>,
224 paddle1_id -> Nullable<SmallInt>,
225 paddle10_id -> Nullable<SmallInt>,
226 paddle11_id -> Nullable<SmallInt>,
227 paddle2_id -> Nullable<SmallInt>,
228 paddle3_id -> Nullable<SmallInt>,
229 paddle4_id -> Nullable<SmallInt>,
230 paddle5_id -> Nullable<SmallInt>,
231 paddle6_id -> Nullable<SmallInt>,
232 paddle7_id -> Nullable<SmallInt>,
233 paddle8_id -> Nullable<SmallInt>,
234 paddle9_id -> Nullable<SmallInt>,
235 }
236}
237
238diesel::table! {
239 tof_db_rat (rat_id) {
240 rat_id -> SmallInt,
241 pb_id -> SmallInt,
242 rb1_id -> SmallInt,
243 rb2_id -> SmallInt,
244 ltb_id -> SmallInt,
245 ltb_harting_cable_length -> SmallInt,
246 }
247}
248
249diesel::table! {
250 tof_db_readoutboard (rb_id) {
251 rb_id -> SmallInt,
252 dsi -> SmallInt,
253 j -> SmallInt,
254 mtb_link_id -> SmallInt,
255 paddle12_chA -> Nullable<SmallInt>,
256 paddle34_chA -> Nullable<SmallInt>,
257 paddle56_chA -> Nullable<SmallInt>,
258 paddle78_chA -> Nullable<SmallInt>,
259 paddle12_id -> Nullable<SmallInt>,
260 paddle34_id -> Nullable<SmallInt>,
261 paddle56_id -> Nullable<SmallInt>,
262 paddle78_id -> Nullable<SmallInt>,
263 }
264}
265
266
267diesel::joinable!(auth_group_permissions -> auth_group (group_id));
268diesel::joinable!(auth_group_permissions -> auth_permission (permission_id));
269diesel::joinable!(auth_permission -> django_content_type (content_type_id));
270diesel::joinable!(auth_user_groups -> auth_group (group_id));
271diesel::joinable!(auth_user_groups -> auth_user (user_id));
272diesel::joinable!(auth_user_user_permissions -> auth_permission (permission_id));
273diesel::joinable!(auth_user_user_permissions -> auth_user (user_id));
274diesel::joinable!(django_admin_log -> auth_user (user_id));
275diesel::joinable!(django_admin_log -> django_content_type (content_type_id));
276
277diesel::allow_tables_to_appear_in_same_query!(
278 auth_group,
279 auth_group_permissions,
280 auth_permission,
281 auth_user,
282 auth_user_groups,
283 auth_user_user_permissions,
284 django_admin_log,
285 django_content_type,
286 django_migrations,
287 django_session,
288 tof_db_dsicard,
289 tof_db_run,
290 tof_db_localtriggerboard,
291 tof_db_mtbchannel,
292 tof_db_paddle,
293 tof_db_panel,
294 tof_db_rat,
295 tof_db_readoutboard,
296 tof_db_trackerstrip,
297);