summaryrefslogtreecommitdiff
path: root/dichroism/src/entities/product.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dichroism/src/entities/product.rs')
-rw-r--r--dichroism/src/entities/product.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/dichroism/src/entities/product.rs b/dichroism/src/entities/product.rs
new file mode 100644
index 0000000..4f47c1d
--- /dev/null
+++ b/dichroism/src/entities/product.rs
@@ -0,0 +1,11 @@
+#[derive(Debug, Clone, Queryable, Serialize)]
+pub struct Product {
+ pub id: i32,
+ pub photo_set: i32,
+ pub cents: i32,
+ pub quantity: i32,
+ pub name: String,
+ pub description: String,
+ pub featured: i32,
+}
+