diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-10-22 17:44:38 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-10-22 17:44:38 -0400 |
commit | 99dabd3f2f81ffcf0b6f2b59e13ebb4502b2ccac (patch) | |
tree | 15e19324332173405fc7544af2c17195d7b05ff1 /dichroism/src/schema.rs | |
parent | 76a782599b4ecc4ecb9b0ce7acc6420ed9e1ec8e (diff) | |
download | theglassyladies-99dabd3f2f81ffcf0b6f2b59e13ebb4502b2ccac.tar.xz theglassyladies-99dabd3f2f81ffcf0b6f2b59e13ebb4502b2ccac.zip |
Added product migration, better organization of DTOs, Entities, and
Domain Models. Also made config loading/photo generation easier.
Diffstat (limited to 'dichroism/src/schema.rs')
-rw-r--r-- | dichroism/src/schema.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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, ); |