raspberry_web/
schema.rs

1table! {
2    allowed_states (state_id) {
3        state_id -> Integer,
4        state_type -> Text,
5        input -> Integer,
6        output -> Integer,
7        high -> Integer,
8        low -> Integer,
9    }
10}
11
12table! {
13    gpio_state (gpio_id) {
14        gpio_id -> Integer,
15        in_use -> Integer,
16        gpio_mode -> Nullable<Text>,
17        gpio_level -> Nullable<Text>,
18        last_change -> Nullable<Timestamp>,
19    }
20}
21
22allow_tables_to_appear_in_same_query!(allowed_states, gpio_state,);