@@ -37,6 +37,57 @@ table! {
37
37
}
38
38
}
39
39
40
+ table ! {
41
+ use diesel:: sql_types:: * ;
42
+ use postgis_diesel:: sql_types:: * ;
43
+ use crate :: model:: types:: * ;
44
+
45
+ opening_hour_computed ( id) {
46
+ id -> Uuid ,
47
+ place_id -> Uuid ,
48
+ opening_timestamp -> Timestamptz ,
49
+ closing_timestamp -> Timestamptz ,
50
+ evacuation_timestamp -> Timestamptz ,
51
+ created_at -> Timestamptz ,
52
+ updated_at -> Timestamptz ,
53
+ }
54
+ }
55
+
56
+ table ! {
57
+ use diesel:: sql_types:: * ;
58
+ use postgis_diesel:: sql_types:: * ;
59
+ use crate :: model:: types:: * ;
60
+
61
+ opening_hour_date ( id) {
62
+ id -> Uuid ,
63
+ place_id -> Uuid ,
64
+ date -> Date ,
65
+ opening_time -> Nullable <Time >,
66
+ closure_time -> Nullable <Time >,
67
+ evacuation_time -> Nullable <Time >,
68
+ closed -> Bool ,
69
+ created_at -> Timestamptz ,
70
+ updated_at -> Timestamptz ,
71
+ }
72
+ }
73
+
74
+ table ! {
75
+ use diesel:: sql_types:: * ;
76
+ use postgis_diesel:: sql_types:: * ;
77
+ use crate :: model:: types:: * ;
78
+
79
+ opening_hour_day ( id) {
80
+ id -> Uuid ,
81
+ place_id -> Uuid ,
82
+ day -> Int2 ,
83
+ opening_time -> Time ,
84
+ closure_time -> Time ,
85
+ evacuation_time -> Time ,
86
+ created_at -> Timestamptz ,
87
+ updated_at -> Timestamptz ,
88
+ }
89
+ }
90
+
40
91
table ! {
41
92
use diesel:: sql_types:: * ;
42
93
use postgis_diesel:: sql_types:: * ;
@@ -74,6 +125,7 @@ table! {
74
125
location -> Nullable <Geometry >,
75
126
current_gauge_level -> Gauge_level ,
76
127
current_gauge_percent -> Nullable <Int8 >,
128
+ timezone -> Text ,
77
129
}
78
130
}
79
131
@@ -116,8 +168,21 @@ joinable!(checkin -> place (place_id));
116
168
joinable ! ( checkin -> session ( session_id) ) ;
117
169
joinable ! ( checkin -> user ( user_id) ) ;
118
170
joinable ! ( infection -> organization ( organization_id) ) ;
171
+ joinable ! ( opening_hour_computed -> place ( place_id) ) ;
172
+ joinable ! ( opening_hour_date -> place ( place_id) ) ;
173
+ joinable ! ( opening_hour_day -> place ( place_id) ) ;
119
174
joinable ! ( organization -> user ( user_id) ) ;
120
175
joinable ! ( place -> organization ( organization_id) ) ;
121
176
joinable ! ( session -> user ( user_id) ) ;
122
177
123
- allow_tables_to_appear_in_same_query ! ( checkin, infection, organization, place, session, user, ) ;
178
+ allow_tables_to_appear_in_same_query ! (
179
+ checkin,
180
+ infection,
181
+ opening_hour_computed,
182
+ opening_hour_date,
183
+ opening_hour_day,
184
+ organization,
185
+ place,
186
+ session,
187
+ user,
188
+ ) ;
0 commit comments