From 99dabd3f2f81ffcf0b6f2b59e13ebb4502b2ccac Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Thu, 22 Oct 2020 17:44:38 -0400 Subject: Added product migration, better organization of DTOs, Entities, and Domain Models. Also made config loading/photo generation easier. --- dichroism/src/schema.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'dichroism/src/schema.rs') diff --git a/dichroism/src/schema.rs b/dichroism/src/schema.rs index 5b038e6..9eb92d8 100644 --- a/dichroism/src/schema.rs +++ b/dichroism/src/schema.rs @@ -15,7 +15,22 @@ table! { } } +table! { + products (id) { + id -> Integer, + photo_set -> Integer, + cents -> Integer, + quantity -> Integer, + name -> Text, + description -> Text, + featured -> Integer, + } +} + +joinable!(products -> photo_sets (photo_set)); + allow_tables_to_appear_in_same_query!( photo_sets, photos, + products, ); -- cgit v1.2.3