aboutsummaryrefslogtreecommitdiff
path: root/src/schema.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-11-16 14:16:32 +0000
committerAkshay <[email protected]>2020-11-16 14:16:32 +0000
commitf6638209b31397a7ac4c93d4a08c7d7fbc48b92a (patch)
treef90c1d69e85272fb6407250bdee4a0d6029a8abf /src/schema.rs
parent6cdd42567da8bc8e7fe1107f055da7fa3d260b60 (diff)
update models for product apis
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs
index 8ed6e58..b6074f2 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -7,3 +7,18 @@ table! {
7 email_id -> Varchar, 7 email_id -> Varchar,
8 } 8 }
9} 9}
10
11table! {
12 product (id) {
13 id -> Integer,
14 name -> Varchar,
15 kind -> Nullable<Varchar>,
16 price -> Float,
17 description -> Nullable<Varchar>,
18 }
19}
20
21allow_tables_to_appear_in_same_query!(
22 members,
23 product,
24);