aboutsummaryrefslogtreecommitdiffstats
path: root/src/schema.rs
blob: fc3066ca7da267385ed298bd50c618e797c505c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
table! {
    event (id) {
        id -> Int4,
        name -> Varchar,
        description -> Nullable<Text>,
    }
}

table! {
    films (id) {
        id -> Int4,
        title -> Varchar,
        url -> Nullable<Varchar>,
    }
}

table! {
    rooms (id) {
        id -> Int4,
        name -> Varchar,
    }
}

table! {
    screenings (id) {
        id -> Int4,
        film_id -> Int4,
        room_id -> Int4,
        start_time -> Timestamptz,
        end_time -> Timestamptz,
    }
}

allow_tables_to_appear_in_same_query!(
    event,
    films,
    rooms,
    screenings,
);