From 76a782599b4ecc4ecb9b0ce7acc6420ed9e1ec8e Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 20 Oct 2020 09:50:08 -0400 Subject: back to basics -- working on the most-required functionality first, like handlers --- dichroism/src/schema.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'dichroism/src/schema.rs') diff --git a/dichroism/src/schema.rs b/dichroism/src/schema.rs index e1c4408..5b038e6 100644 --- a/dichroism/src/schema.rs +++ b/dichroism/src/schema.rs @@ -1,6 +1,21 @@ table! { - images (id) { + photo_sets (id) { + id -> Integer, + base -> Integer, + fullsize -> Integer, + thumbnail -> Integer, + original -> Integer, + } +} + +table! { + photos (id) { id -> Integer, path -> Text, } } + +allow_tables_to_appear_in_same_query!( + photo_sets, + photos, +); -- cgit v1.2.3