aboutsummaryrefslogtreecommitdiffstats
path: root/src/schema.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-25 16:12:16 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-25 16:12:16 +0200
commit639eb16af544ea051d2e091111bcd6427a1644d0 (patch)
treede4546f8f075cc122d503a7750d989dbc87c6d3d /src/schema.rs
parentccf0703f753c66405683b17b4d1f5135c10c0ece (diff)
downloadramaskrik-social-639eb16af544ea051d2e091111bcd6427a1644d0.tar.gz
ramaskrik-social-639eb16af544ea051d2e091111bcd6427a1644d0.tar.bz2
ramaskrik-social-639eb16af544ea051d2e091111bcd6427a1644d0.zip
Add info about the event to the db and render landing page.
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs
index 8931558..fc3066c 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -1,4 +1,12 @@
table! {
+ event (id) {
+ id -> Int4,
+ name -> Varchar,
+ description -> Nullable<Text>,
+ }
+}
+
+table! {
films (id) {
id -> Int4,
title -> Varchar,
@@ -24,6 +32,7 @@ table! {
}
allow_tables_to_appear_in_same_query!(
+ event,
films,
rooms,
screenings,