aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/schema.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs
new file mode 100644
index 0000000..88e1e00
--- /dev/null
+++ b/src/schema.rs
@@ -0,0 +1,31 @@
+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,
+ date -> Date,
+ start_time -> Time,
+ end_time -> Time,
+ }
+}
+
+allow_tables_to_appear_in_same_query!(
+ films,
+ rooms,
+ screenings,
+);