summaryrefslogtreecommitdiff
path: root/dichroism/src/schema.rs
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-07 08:15:37 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-07 08:15:37 -0500
commit2c408648c70614a88c0412faf6d3a00d147379a2 (patch)
tree6f8c84d0485917cf16b7f0420a2b74961177cc26 /dichroism/src/schema.rs
parent01de71698b91bc61e61d076f9c25d1cabb039b18 (diff)
downloadtheglassyladies-2c408648c70614a88c0412faf6d3a00d147379a2.tar.xz
theglassyladies-2c408648c70614a88c0412faf6d3a00d147379a2.zip
Added category to products.
Diffstat (limited to 'dichroism/src/schema.rs')
-rw-r--r--dichroism/src/schema.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/dichroism/src/schema.rs b/dichroism/src/schema.rs
index fb59bf6..45501cf 100644
--- a/dichroism/src/schema.rs
+++ b/dichroism/src/schema.rs
@@ -1,4 +1,11 @@
table! {
+ categories (id) {
+ id -> Integer,
+ path -> Text,
+ }
+}
+
+table! {
photo_sets (id) {
id -> Integer,
base -> Text,
@@ -17,12 +24,15 @@ table! {
name -> Text,
description -> Text,
featured -> Integer,
+ category -> Integer,
}
}
+joinable!(products -> categories (category));
joinable!(products -> photo_sets (photo_set));
allow_tables_to_appear_in_same_query!(
+ categories,
photo_sets,
products,
);