From 639eb16af544ea051d2e091111bcd6427a1644d0 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 25 Aug 2020 16:12:16 +0200 Subject: Add info about the event to the db and render landing page. --- src/schema.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/schema.rs') diff --git a/src/schema.rs b/src/schema.rs index 8931558..fc3066c 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1,3 +1,11 @@ +table! { + event (id) { + id -> Int4, + name -> Varchar, + description -> Nullable, + } +} + table! { films (id) { id -> Int4, @@ -24,6 +32,7 @@ table! { } allow_tables_to_appear_in_same_query!( + event, films, rooms, screenings, -- cgit v1.2.3