ソースを参照

update schema and add table structure

Csy817 6 年 前
コミット
f661569ced
4 ファイル変更684 行追加393 行削除
  1. 225 213
      ec.txt
  2. 194 170
      ec_enhance.txt
  3. 17 10
      ecommerce.csv
  4. 248 0
      structure.md

ファイルの差分が大きいため隠しています
+ 225 - 213
ec.txt


+ 194 - 170
ec_enhance.txt

@@ -40,7 +40,8 @@ query adminbyid($id: ID) {
 
 query specificationStockbyid($id: ID) {
     specificationStockbyid: specificationStock_by_id(id: $id) {
-        id
+        updatedAt
+        color
         product_id {
             recommend
             updatedAt
@@ -50,17 +51,19 @@ query specificationStockbyid($id: ID) {
             status
             id
             intro
+            discountRate
             price
 
             img
             stock
         }
-        color
+        createdAt
         size
-        stock
+        slideImg
         status
-        createdAt
-        updatedAt
+        id
+        detailImg
+        stock
     }
 }
 
@@ -76,9 +79,16 @@ query categorybyprops($updatedAt: String, $where: category_filter, $sort_by: cat
     }
 }
 
-query orderPaybyprops($where: orderPay_filter, $sort_by: orderPay_sort_by, $limit: Int, $payTime: String, $order_by: OrderBy, $transactionId: String, $totalPay: Float, $filter: Filter, $order_id: ID, $user_id: ID, $skip: Int) {
-    orderPaybyprops: orderPay_by_props(where: $where sort_by: $sort_by limit: $limit payTime: $payTime order_by: $order_by transactionId: $transactionId totalPay: $totalPay filter: $filter order_id: $order_id user_id: $user_id skip: $skip) {
+query orderPaybyprops($updatedAt: String, $where: orderPay_filter, $sort_by: orderPay_sort_by, $limit: Int, $tradeNo: String, $order_by: OrderBy, $transactionId: String, $time: String, $createdAt: String, $filter: Filter, $openid: String, $totalFee: Float, $user_id: ID, $cashFee: Float, $skip: Int) {
+    orderPaybyprops: orderPay_by_props(updatedAt: $updatedAt where: $where sort_by: $sort_by limit: $limit tradeNo: $tradeNo order_by: $order_by transactionId: $transactionId time: $time createdAt: $createdAt filter: $filter openid: $openid totalFee: $totalFee user_id: $user_id cashFee: $cashFee skip: $skip) {
+        updatedAt
+        tradeNo
+        transactionId
+        time
+        createdAt
+        openid
         id
+        totalFee
         user_id {
             email
             updatedAt
@@ -89,25 +99,7 @@ query orderPaybyprops($where: orderPay_filter, $sort_by: orderPay_sort_by, $limi
             openid
             id
         }
-        order_id {
-            deliveryTime
-            remark
-            updatedAt
-
-            payTime
-            orderTotalPay
-            createdAt
-            orderStatus
-
-            id
-            orderShipFee
-            count
-
-            productTotalPay
-        }
-        totalPay
-        transactionId
-        payTime
+        cashFee
     }
 }
 
@@ -133,20 +125,23 @@ query userCartbyid($id: ID) {
             status
             id
             intro
+            discountRate
             price
 
             img
             stock
         }
         specificationStock_id {
-            id
-
+            updatedAt
             color
+
+            createdAt
             size
-            stock
+            slideImg
             status
-            createdAt
-            updatedAt
+            id
+            detailImg
+            stock
         }
         count
         createdAt
@@ -221,6 +216,7 @@ query userCollectbyprops($updatedAt: String, $where: userCollect_filter, $sort_b
             status
             id
             intro
+            discountRate
             price
 
             img
@@ -231,8 +227,8 @@ query userCollectbyprops($updatedAt: String, $where: userCollect_filter, $sort_b
     }
 }
 
-query productbyprops($recommend: Int, $updatedAt: String, $where: product_filter, $sort_by: product_sort_by, $limit: Int, $unit: String, $order_by: OrderBy, $name: String, $createdAt: String, $filter: Filter, $status: String, $intro: String, $price: Float, $category_id: ID, $img: String, $stock: Int, $skip: Int) {
-    productbyprops: product_by_props(recommend: $recommend updatedAt: $updatedAt where: $where sort_by: $sort_by limit: $limit unit: $unit order_by: $order_by name: $name createdAt: $createdAt filter: $filter status: $status intro: $intro price: $price category_id: $category_id img: $img stock: $stock skip: $skip) {
+query productbyprops($recommend: Int, $updatedAt: String, $where: product_filter, $sort_by: product_sort_by, $limit: Int, $unit: String, $order_by: OrderBy, $name: String, $createdAt: String, $filter: Filter, $status: String, $intro: String, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int, $skip: Int) {
+    productbyprops: product_by_props(recommend: $recommend updatedAt: $updatedAt where: $where sort_by: $sort_by limit: $limit unit: $unit order_by: $order_by name: $name createdAt: $createdAt filter: $filter status: $status intro: $intro discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock skip: $skip) {
         recommend
         updatedAt
         unit
@@ -241,6 +237,7 @@ query productbyprops($recommend: Int, $updatedAt: String, $where: product_filter
         status
         id
         intro
+        discountRate
         price
         category_id {
             id
@@ -258,28 +255,28 @@ query productbyprops($recommend: Int, $updatedAt: String, $where: product_filter
 
 query orderLogisticsbyid($id: ID) {
     orderLogisticsbyid: orderLogistics_by_id(id: $id) {
+        deliveryTime
+        serviceStore
         updatedAt
         logisticsFee
         expressId
         createdAt
         order_id {
-            deliveryTime
             remark
             updatedAt
 
-            payTime
             orderTotalPay
             createdAt
             orderStatus
 
             id
-            orderShipFee
             count
 
             productTotalPay
         }
         consigneeTel
         id
+        expressName
         consignAddress
         LogisticsStatus
         user_id {
@@ -302,7 +299,8 @@ query orderProductsearch($updatedAt: String, $limit: Int, $productColor: String,
 
 query specificationStockbyprops($updatedAt: String, $where: specificationStock_filter, $color: String, $sort_by: specificationStock_sort_by, $limit: Int, $product_id: ID, $order_by: OrderBy, $createdAt: String, $size: String, $filter: Filter, $status: String, $stock: Int, $skip: Int) {
     specificationStockbyprops: specificationStock_by_props(updatedAt: $updatedAt where: $where color: $color sort_by: $sort_by limit: $limit product_id: $product_id order_by: $order_by createdAt: $createdAt size: $size filter: $filter status: $status stock: $stock skip: $skip) {
-        id
+        updatedAt
+        color
         product_id {
             recommend
             updatedAt
@@ -312,17 +310,19 @@ query specificationStockbyprops($updatedAt: String, $where: specificationStock_f
             status
             id
             intro
+            discountRate
             price
 
             img
             stock
         }
-        color
+        createdAt
         size
-        stock
+        slideImg
         status
-        createdAt
-        updatedAt
+        id
+        detailImg
+        stock
     }
 }
 
@@ -340,6 +340,7 @@ query orderProductbyid($id: ID) {
             status
             id
             intro
+            discountRate
             price
 
             img
@@ -351,27 +352,26 @@ query orderProductbyid($id: ID) {
         productImg
         productName
         specificationStock_id {
-            id
-
+            updatedAt
             color
+
+            createdAt
             size
-            stock
+            slideImg
             status
-            createdAt
-            updatedAt
+            id
+            detailImg
+            stock
         }
         order_id {
-            deliveryTime
             remark
             updatedAt
 
-            payTime
             orderTotalPay
             createdAt
             orderStatus
 
             id
-            orderShipFee
             count
 
             productTotalPay
@@ -391,12 +391,16 @@ query orderProductbyid($id: ID) {
             id
         }
         orderPay_id {
+            updatedAt
+            tradeNo
+            transactionId
+            time
+            createdAt
+            openid
             id
+            totalFee
 
-
-            totalPay
-            transactionId
-            payTime
+            cashFee
         }
     }
 }
@@ -423,6 +427,7 @@ query userCollectbyid($id: ID) {
             status
             id
             intro
+            discountRate
             price
 
             img
@@ -463,7 +468,14 @@ query userAddressbyprops($address: String, $updatedAt: String, $where: userAddre
 
 query orderPaybyid($id: ID) {
     orderPaybyid: orderPay_by_id(id: $id) {
+        updatedAt
+        tradeNo
+        transactionId
+        time
+        createdAt
+        openid
         id
+        totalFee
         user_id {
             email
             updatedAt
@@ -474,25 +486,7 @@ query orderPaybyid($id: ID) {
             openid
             id
         }
-        order_id {
-            deliveryTime
-            remark
-            updatedAt
-
-            payTime
-            orderTotalPay
-            createdAt
-            orderStatus
-
-            id
-            orderShipFee
-            count
-
-            productTotalPay
-        }
-        totalPay
-        transactionId
-        payTime
+        cashFee
     }
 }
 
@@ -546,30 +540,30 @@ query shopsearch($description: String, $address: String, $updatedAt: String, $li
     shopsearch: shop_search(description: $description address: $address updatedAt: $updatedAt limit: $limit order_by: $order_by telephone: $telephone name: $name createdAt: $createdAt filter: $filter status: $status breakout: $breakout notice: $notice intro: $intro aggregate: $aggregate skip: $skip)
 }
 
-query orderLogisticsbyprops($updatedAt: String, $where: orderLogistics_filter, $logisticsFee: Float, $sort_by: orderLogistics_sort_by, $limit: Int, $expressId: String, $order_by: OrderBy, $createdAt: String, $filter: Filter, $order_id: ID, $consigneeTel: String, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String, $skip: Int) {
-    orderLogisticsbyprops: orderLogistics_by_props(updatedAt: $updatedAt where: $where logisticsFee: $logisticsFee sort_by: $sort_by limit: $limit expressId: $expressId order_by: $order_by createdAt: $createdAt filter: $filter order_id: $order_id consigneeTel: $consigneeTel consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName skip: $skip) {
+query orderLogisticsbyprops($deliveryTime: String, $serviceStore: String, $updatedAt: String, $where: orderLogistics_filter, $logisticsFee: Float, $sort_by: orderLogistics_sort_by, $limit: Int, $expressId: String, $order_by: OrderBy, $createdAt: String, $filter: Filter, $order_id: ID, $consigneeTel: String, $expressName: String, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String, $skip: Int) {
+    orderLogisticsbyprops: orderLogistics_by_props(deliveryTime: $deliveryTime serviceStore: $serviceStore updatedAt: $updatedAt where: $where logisticsFee: $logisticsFee sort_by: $sort_by limit: $limit expressId: $expressId order_by: $order_by createdAt: $createdAt filter: $filter order_id: $order_id consigneeTel: $consigneeTel expressName: $expressName consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName skip: $skip) {
+        deliveryTime
+        serviceStore
         updatedAt
         logisticsFee
         expressId
         createdAt
         order_id {
-            deliveryTime
             remark
             updatedAt
 
-            payTime
             orderTotalPay
             createdAt
             orderStatus
 
             id
-            orderShipFee
             count
 
             productTotalPay
         }
         consigneeTel
         id
+        expressName
         consignAddress
         LogisticsStatus
         user_id {
@@ -607,16 +601,17 @@ query usersearch($email: String, $updatedAt: String, $limit: Int, $password: Str
     usersearch: user_search(email: $email updatedAt: $updatedAt limit: $limit password: $password order_by: $order_by telephone: $telephone username: $username createdAt: $createdAt filter: $filter openid: $openid breakout: $breakout userData_id: $userData_id aggregate: $aggregate skip: $skip)
 }
 
-query orderPaysearch($limit: Int, $payTime: String, $order_by: OrderBy, $transactionId: String, $totalPay: Float, $filter: Filter, $order_id: ID, $breakout: Field, $user_id: ID, $aggregate: Aggregation, $skip: Int) {
-    orderPaysearch: orderPay_search(limit: $limit payTime: $payTime order_by: $order_by transactionId: $transactionId totalPay: $totalPay filter: $filter order_id: $order_id breakout: $breakout user_id: $user_id aggregate: $aggregate skip: $skip)
+query orderPaysearch($updatedAt: String, $limit: Int, $tradeNo: String, $order_by: OrderBy, $transactionId: String, $time: String, $createdAt: String, $filter: Filter, $openid: String, $breakout: Field, $totalFee: Float, $user_id: ID, $aggregate: Aggregation, $cashFee: Float, $skip: Int) {
+    orderPaysearch: orderPay_search(updatedAt: $updatedAt limit: $limit tradeNo: $tradeNo order_by: $order_by transactionId: $transactionId time: $time createdAt: $createdAt filter: $filter openid: $openid breakout: $breakout totalFee: $totalFee user_id: $user_id aggregate: $aggregate cashFee: $cashFee skip: $skip)
 }
 
 query orderbyid($id: ID) {
     orderbyid: order_by_id(id: $id) {
-        deliveryTime
         remark
         updatedAt
         orderLogistics_id {
+            deliveryTime
+            serviceStore
             updatedAt
             logisticsFee
             expressId
@@ -624,12 +619,12 @@ query orderbyid($id: ID) {
 
             consigneeTel
             id
+            expressName
             consignAddress
             LogisticsStatus
 
             consigneeName
         }
-        payTime
         orderTotalPay
         createdAt
         orderStatus
@@ -649,7 +644,6 @@ query orderbyid($id: ID) {
             province
         }
         id
-        orderShipFee
         count
         user_id {
             email
@@ -663,18 +657,22 @@ query orderbyid($id: ID) {
         }
         productTotalPay
         orderPay_id {
+            updatedAt
+            tradeNo
+            transactionId
+            time
+            createdAt
+            openid
             id
+            totalFee
 
-
-            totalPay
-            transactionId
-            payTime
+            cashFee
         }
     }
 }
 
-query orderLogisticssearch($updatedAt: String, $logisticsFee: Float, $limit: Int, $expressId: String, $order_by: OrderBy, $createdAt: String, $filter: Filter, $order_id: ID, $consigneeTel: String, $breakout: Field, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $aggregate: Aggregation, $consigneeName: String, $skip: Int) {
-    orderLogisticssearch: orderLogistics_search(updatedAt: $updatedAt logisticsFee: $logisticsFee limit: $limit expressId: $expressId order_by: $order_by createdAt: $createdAt filter: $filter order_id: $order_id consigneeTel: $consigneeTel breakout: $breakout consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id aggregate: $aggregate consigneeName: $consigneeName skip: $skip)
+query orderLogisticssearch($deliveryTime: String, $serviceStore: String, $updatedAt: String, $logisticsFee: Float, $limit: Int, $expressId: String, $order_by: OrderBy, $createdAt: String, $filter: Filter, $order_id: ID, $consigneeTel: String, $expressName: String, $breakout: Field, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $aggregate: Aggregation, $consigneeName: String, $skip: Int) {
+    orderLogisticssearch: orderLogistics_search(deliveryTime: $deliveryTime serviceStore: $serviceStore updatedAt: $updatedAt logisticsFee: $logisticsFee limit: $limit expressId: $expressId order_by: $order_by createdAt: $createdAt filter: $filter order_id: $order_id consigneeTel: $consigneeTel expressName: $expressName breakout: $breakout consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id aggregate: $aggregate consigneeName: $consigneeName skip: $skip)
 }
 
 query orderProductbyprops($updatedAt: String, $where: orderProduct_filter, $sort_by: orderProduct_sort_by, $limit: Int, $productColor: String, $unit: String, $product_id: ID, $productSize: String, $order_by: OrderBy, $orderPay: Float, $createdAt: String, $productImg: String, $productName: String, $specificationStock_id: ID, $filter: Filter, $order_id: ID, $productPrice: Float, $count: Int, $productPay: Float, $user_id: ID, $orderPay_id: ID, $skip: Int) {
@@ -691,6 +689,7 @@ query orderProductbyprops($updatedAt: String, $where: orderProduct_filter, $sort
             status
             id
             intro
+            discountRate
             price
 
             img
@@ -702,27 +701,26 @@ query orderProductbyprops($updatedAt: String, $where: orderProduct_filter, $sort
         productImg
         productName
         specificationStock_id {
-            id
-
+            updatedAt
             color
+
+            createdAt
             size
-            stock
+            slideImg
             status
-            createdAt
-            updatedAt
+            id
+            detailImg
+            stock
         }
         order_id {
-            deliveryTime
             remark
             updatedAt
 
-            payTime
             orderTotalPay
             createdAt
             orderStatus
 
             id
-            orderShipFee
             count
 
             productTotalPay
@@ -742,12 +740,16 @@ query orderProductbyprops($updatedAt: String, $where: orderProduct_filter, $sort
             id
         }
         orderPay_id {
+            updatedAt
+            tradeNo
+            transactionId
+            time
+            createdAt
+            openid
             id
+            totalFee
 
-
-            totalPay
-            transactionId
-            payTime
+            cashFee
         }
     }
 }
@@ -762,6 +764,7 @@ query productbyid($id: ID) {
         status
         id
         intro
+        discountRate
         price
         category_id {
             id
@@ -856,20 +859,23 @@ query userCartbyprops($updatedAt: String, $where: userCart_filter, $sort_by: use
             status
             id
             intro
+            discountRate
             price
 
             img
             stock
         }
         specificationStock_id {
-            id
-
+            updatedAt
             color
+
+            createdAt
             size
-            stock
+            slideImg
             status
-            createdAt
-            updatedAt
+            id
+            detailImg
+            stock
         }
         count
         createdAt
@@ -885,8 +891,8 @@ query userDatasearch($updatedAt: String, $userPoint: Int, $limit: Int, $order_by
     userDatasearch: userData_search(updatedAt: $updatedAt userPoint: $userPoint limit: $limit order_by: $order_by nickname: $nickname createdAt: $createdAt filter: $filter avatar: $avatar breakout: $breakout vipCode: $vipCode aggregate: $aggregate isVip: $isVip skip: $skip)
 }
 
-query ordersearch($deliveryTime: String, $remark: String, $updatedAt: String, $orderLogistics_id: ID, $limit: Int, $payTime: String, $order_by: OrderBy, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $filter: Filter, $orderShipFee: Float, $count: Int, $breakout: Field, $user_id: ID, $productTotalPay: Float, $aggregate: Aggregation, $orderPay_id: ID, $skip: Int) {
-    ordersearch: order_search(deliveryTime: $deliveryTime remark: $remark updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id limit: $limit payTime: $payTime order_by: $order_by orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id filter: $filter orderShipFee: $orderShipFee count: $count breakout: $breakout user_id: $user_id productTotalPay: $productTotalPay aggregate: $aggregate orderPay_id: $orderPay_id skip: $skip)
+query ordersearch($remark: String, $updatedAt: String, $orderLogistics_id: ID, $limit: Int, $order_by: OrderBy, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $filter: Filter, $count: Int, $breakout: Field, $user_id: ID, $productTotalPay: Float, $aggregate: Aggregation, $orderPay_id: ID, $skip: Int) {
+    ordersearch: order_search(remark: $remark updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id limit: $limit order_by: $order_by orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id filter: $filter count: $count breakout: $breakout user_id: $user_id productTotalPay: $productTotalPay aggregate: $aggregate orderPay_id: $orderPay_id skip: $skip)
 }
 
 query shopbyid($id: ID) {
@@ -906,8 +912,8 @@ query shopbyid($id: ID) {
     }
 }
 
-query productsearch($recommend: Int, $updatedAt: String, $limit: Int, $unit: String, $order_by: OrderBy, $name: String, $createdAt: String, $filter: Filter, $status: String, $breakout: Field, $intro: String, $aggregate: Aggregation, $price: Float, $category_id: ID, $img: String, $stock: Int, $skip: Int) {
-    productsearch: product_search(recommend: $recommend updatedAt: $updatedAt limit: $limit unit: $unit order_by: $order_by name: $name createdAt: $createdAt filter: $filter status: $status breakout: $breakout intro: $intro aggregate: $aggregate price: $price category_id: $category_id img: $img stock: $stock skip: $skip)
+query productsearch($recommend: Int, $updatedAt: String, $limit: Int, $unit: String, $order_by: OrderBy, $name: String, $createdAt: String, $filter: Filter, $status: String, $breakout: Field, $intro: String, $aggregate: Aggregation, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int, $skip: Int) {
+    productsearch: product_search(recommend: $recommend updatedAt: $updatedAt limit: $limit unit: $unit order_by: $order_by name: $name createdAt: $createdAt filter: $filter status: $status breakout: $breakout intro: $intro aggregate: $aggregate discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock skip: $skip)
 }
 
 query userCollectsearch($updatedAt: String, $limit: Int, $order_by: OrderBy, $createdAt: String, $filter: Filter, $breakout: Field, $user_id: ID, $aggregate: Aggregation, $skip: Int) {
@@ -937,12 +943,13 @@ query userbyprops($email: String, $updatedAt: String, $where: user_filter, $sort
     }
 }
 
-query orderbyprops($deliveryTime: String, $remark: String, $updatedAt: String, $where: order_filter, $orderLogistics_id: ID, $sort_by: order_sort_by, $limit: Int, $payTime: String, $order_by: OrderBy, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $filter: Filter, $orderShipFee: Float, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID, $skip: Int) {
-    orderbyprops: order_by_props(deliveryTime: $deliveryTime remark: $remark updatedAt: $updatedAt where: $where orderLogistics_id: $orderLogistics_id sort_by: $sort_by limit: $limit payTime: $payTime order_by: $order_by orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id filter: $filter orderShipFee: $orderShipFee count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id skip: $skip) {
-        deliveryTime
+query orderbyprops($remark: String, $updatedAt: String, $where: order_filter, $orderLogistics_id: ID, $sort_by: order_sort_by, $limit: Int, $order_by: OrderBy, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $filter: Filter, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID, $skip: Int) {
+    orderbyprops: order_by_props(remark: $remark updatedAt: $updatedAt where: $where orderLogistics_id: $orderLogistics_id sort_by: $sort_by limit: $limit order_by: $order_by orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id filter: $filter count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id skip: $skip) {
         remark
         updatedAt
         orderLogistics_id {
+            deliveryTime
+            serviceStore
             updatedAt
             logisticsFee
             expressId
@@ -950,12 +957,12 @@ query orderbyprops($deliveryTime: String, $remark: String, $updatedAt: String, $
 
             consigneeTel
             id
+            expressName
             consignAddress
             LogisticsStatus
 
             consigneeName
         }
-        payTime
         orderTotalPay
         createdAt
         orderStatus
@@ -975,7 +982,6 @@ query orderbyprops($deliveryTime: String, $remark: String, $updatedAt: String, $
             province
         }
         id
-        orderShipFee
         count
         user_id {
             email
@@ -989,12 +995,16 @@ query orderbyprops($deliveryTime: String, $remark: String, $updatedAt: String, $
         }
         productTotalPay
         orderPay_id {
+            updatedAt
+            tradeNo
+            transactionId
+            time
+            createdAt
+            openid
             id
+            totalFee
 
-
-            totalPay
-            transactionId
-            payTime
+            cashFee
         }
     }
 }
@@ -1010,16 +1020,20 @@ query slideshowbyprops($updatedAt: String, $where: slideshow_filter, $sort_by: s
     }
 }
 
-mutation createorderPay($id: ID!, $user_id: ID, $order_id: ID, $totalPay: Float, $transactionId: String, $payTime: String) {
-    createorderPay: create_orderPay(id: $id user_id: $user_id order_id: $order_id totalPay: $totalPay transactionId: $transactionId payTime: $payTime) {
+mutation createorderPay($updatedAt: String, $tradeNo: String, $transactionId: String, $time: String, $createdAt: String, $openid: String, $id: ID!, $totalFee: Float, $user_id: ID, $cashFee: Float) {
+    createorderPay: create_orderPay(updatedAt: $updatedAt tradeNo: $tradeNo transactionId: $transactionId time: $time createdAt: $createdAt openid: $openid id: $id totalFee: $totalFee user_id: $user_id cashFee: $cashFee) {
         result
         orderPay {
+            updatedAt
+            tradeNo
+            transactionId
+            time
+            createdAt
+            openid
             id
+            totalFee
 
-
-            totalPay
-            transactionId
-            payTime
+            cashFee
         }
     }
 }
@@ -1078,8 +1092,8 @@ mutation deletecategory($id: ID, $name: String, $img: String, $order: Int, $stat
     deletecategory: delete_category(id: $id name: $name img: $img order: $order status: $status createdAt: $createdAt updatedAt: $updatedAt where: $where)
 }
 
-mutation updateproduct($recommend: Int, $updatedAt: String, $where: product_filter, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID, $intro: String, $price: Float, $category_id: ID, $img: String, $stock: Int) {
-    updateproduct: update_product(recommend: $recommend updatedAt: $updatedAt where: $where unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro price: $price category_id: $category_id img: $img stock: $stock) {
+mutation updateproduct($recommend: Int, $updatedAt: String, $where: product_filter, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID, $intro: String, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int) {
+    updateproduct: update_product(recommend: $recommend updatedAt: $updatedAt where: $where unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock) {
         result
         product {
             recommend
@@ -1090,6 +1104,7 @@ mutation updateproduct($recommend: Int, $updatedAt: String, $where: product_filt
             status
             id
             intro
+            discountRate
             price
 
             img
@@ -1277,8 +1292,8 @@ mutation createuserSearch($id: ID!, $keyword: Int, $user_id: ID, $createdAt: Str
     }
 }
 
-mutation createproduct($recommend: Int, $updatedAt: String, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID!, $intro: String, $price: Float, $category_id: ID, $img: String, $stock: Int) {
-    createproduct: create_product(recommend: $recommend updatedAt: $updatedAt unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro price: $price category_id: $category_id img: $img stock: $stock) {
+mutation createproduct($recommend: Int, $updatedAt: String, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID!, $intro: String, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int) {
+    createproduct: create_product(recommend: $recommend updatedAt: $updatedAt unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock) {
         result
         product {
             recommend
@@ -1289,6 +1304,7 @@ mutation createproduct($recommend: Int, $updatedAt: String, $unit: String, $name
             status
             id
             intro
+            discountRate
             price
 
             img
@@ -1301,18 +1317,20 @@ mutation deleteuserData($updatedAt: String, $where: userData_filter, $userPoint:
     deleteuserData: delete_userData(updatedAt: $updatedAt where: $where userPoint: $userPoint nickname: $nickname createdAt: $createdAt id: $id avatar: $avatar vipCode: $vipCode isVip: $isVip)
 }
 
-mutation createspecificationStock($id: ID!, $product_id: ID, $color: String, $size: String, $stock: Int, $status: String, $createdAt: String, $updatedAt: String) {
-    createspecificationStock: create_specificationStock(id: $id product_id: $product_id color: $color size: $size stock: $stock status: $status createdAt: $createdAt updatedAt: $updatedAt) {
+mutation createspecificationStock($updatedAt: String, $color: String, $product_id: ID, $createdAt: String, $size: String, $slideImg: String, $status: String, $id: ID!, $detailImg: String, $stock: Int) {
+    createspecificationStock: create_specificationStock(updatedAt: $updatedAt color: $color product_id: $product_id createdAt: $createdAt size: $size slideImg: $slideImg status: $status id: $id detailImg: $detailImg stock: $stock) {
         result
         specificationStock {
-            id
-
+            updatedAt
             color
+
+            createdAt
             size
-            stock
+            slideImg
             status
-            createdAt
-            updatedAt
+            id
+            detailImg
+            stock
         }
     }
 }
@@ -1342,26 +1360,28 @@ mutation updateuserCollect($id: ID, $product_id: ID, $user_id: ID, $createdAt: S
     }
 }
 
-mutation deleteorder($deliveryTime: String, $remark: String, $updatedAt: String, $where: order_filter, $orderLogistics_id: ID, $payTime: String, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID, $orderShipFee: Float, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
-    deleteorder: delete_order(deliveryTime: $deliveryTime remark: $remark updatedAt: $updatedAt where: $where orderLogistics_id: $orderLogistics_id payTime: $payTime orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id orderShipFee: $orderShipFee count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id)
+mutation deleteorder($remark: String, $updatedAt: String, $where: order_filter, $orderLogistics_id: ID, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
+    deleteorder: delete_order(remark: $remark updatedAt: $updatedAt where: $where orderLogistics_id: $orderLogistics_id orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id)
 }
 
 mutation deleteadmin($email: String, $updatedAt: String, $where: admin_filter, $password: String, $telephone: String, $username: String, $createdAt: String, $openid: String, $id: ID) {
     deleteadmin: delete_admin(email: $email updatedAt: $updatedAt where: $where password: $password telephone: $telephone username: $username createdAt: $createdAt openid: $openid id: $id)
 }
 
-mutation updatespecificationStock($updatedAt: String, $where: specificationStock_filter, $color: String, $product_id: ID, $createdAt: String, $size: String, $status: String, $id: ID, $stock: Int) {
-    updatespecificationStock: update_specificationStock(updatedAt: $updatedAt where: $where color: $color product_id: $product_id createdAt: $createdAt size: $size status: $status id: $id stock: $stock) {
+mutation updatespecificationStock($updatedAt: String, $where: specificationStock_filter, $color: String, $product_id: ID, $createdAt: String, $size: String, $slideImg: String, $status: String, $id: ID, $detailImg: String, $stock: Int) {
+    updatespecificationStock: update_specificationStock(updatedAt: $updatedAt where: $where color: $color product_id: $product_id createdAt: $createdAt size: $size slideImg: $slideImg status: $status id: $id detailImg: $detailImg stock: $stock) {
         result
         specificationStock {
-            id
-
+            updatedAt
             color
+
+            createdAt
             size
-            stock
+            slideImg
             status
-            createdAt
-            updatedAt
+            id
+            detailImg
+            stock
         }
     }
 }
@@ -1421,21 +1441,18 @@ mutation createuserData($id: ID!, $nickname: String, $avatar: String, $isVip: Bo
     }
 }
 
-mutation createorder($deliveryTime: String, $remark: String, $updatedAt: String, $orderLogistics_id: ID, $payTime: String, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID!, $orderShipFee: Float, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
-    createorder: create_order(deliveryTime: $deliveryTime remark: $remark updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id payTime: $payTime orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id orderShipFee: $orderShipFee count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
+mutation createorder($remark: String, $updatedAt: String, $orderLogistics_id: ID, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID!, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
+    createorder: create_order(remark: $remark updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
         result
         order {
-            deliveryTime
             remark
             updatedAt
 
-            payTime
             orderTotalPay
             createdAt
             orderStatus
 
             id
-            orderShipFee
             count
 
             productTotalPay
@@ -1447,26 +1464,30 @@ mutation deleteuserSearch($id: ID, $user_id: ID, $createdAt: String, $updatedAt:
     deleteuserSearch: delete_userSearch(id: $id user_id: $user_id createdAt: $createdAt updatedAt: $updatedAt where: $where)
 }
 
-mutation deleteorderPay($id: ID, $user_id: ID, $order_id: ID, $totalPay: Float, $transactionId: String, $payTime: String, $where: orderPay_filter) {
-    deleteorderPay: delete_orderPay(id: $id user_id: $user_id order_id: $order_id totalPay: $totalPay transactionId: $transactionId payTime: $payTime where: $where)
+mutation deleteorderPay($updatedAt: String, $where: orderPay_filter, $tradeNo: String, $transactionId: String, $time: String, $createdAt: String, $openid: String, $id: ID, $totalFee: Float, $user_id: ID, $cashFee: Float) {
+    deleteorderPay: delete_orderPay(updatedAt: $updatedAt where: $where tradeNo: $tradeNo transactionId: $transactionId time: $time createdAt: $createdAt openid: $openid id: $id totalFee: $totalFee user_id: $user_id cashFee: $cashFee)
 }
 
-mutation updateorderPay($id: ID, $user_id: ID, $order_id: ID, $totalPay: Float, $transactionId: String, $payTime: String, $where: orderPay_filter) {
-    updateorderPay: update_orderPay(id: $id user_id: $user_id order_id: $order_id totalPay: $totalPay transactionId: $transactionId payTime: $payTime where: $where) {
+mutation updateorderPay($updatedAt: String, $where: orderPay_filter, $tradeNo: String, $transactionId: String, $time: String, $createdAt: String, $openid: String, $id: ID, $totalFee: Float, $user_id: ID, $cashFee: Float) {
+    updateorderPay: update_orderPay(updatedAt: $updatedAt where: $where tradeNo: $tradeNo transactionId: $transactionId time: $time createdAt: $createdAt openid: $openid id: $id totalFee: $totalFee user_id: $user_id cashFee: $cashFee) {
         result
         orderPay {
+            updatedAt
+            tradeNo
+            transactionId
+            time
+            createdAt
+            openid
             id
+            totalFee
 
-
-            totalPay
-            transactionId
-            payTime
+            cashFee
         }
     }
 }
 
-mutation deleteorderLogistics($updatedAt: String, $where: orderLogistics_filter, $logisticsFee: Float, $expressId: String, $createdAt: String, $order_id: ID, $consigneeTel: String, $id: ID, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String) {
-    deleteorderLogistics: delete_orderLogistics(updatedAt: $updatedAt where: $where logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $id consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName)
+mutation deleteorderLogistics($deliveryTime: String, $serviceStore: String, $updatedAt: String, $where: orderLogistics_filter, $logisticsFee: Float, $expressId: String, $createdAt: String, $order_id: ID, $consigneeTel: String, $id: ID, $expressName: String, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String) {
+    deleteorderLogistics: delete_orderLogistics(deliveryTime: $deliveryTime serviceStore: $serviceStore updatedAt: $updatedAt where: $where logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $id expressName: $expressName consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName)
 }
 
 mutation updateuserSearch($id: ID, $keyword: Int, $user_id: ID, $createdAt: String, $updatedAt: String, $where: userSearch_filter) {
@@ -1482,21 +1503,18 @@ mutation updateuserSearch($id: ID, $keyword: Int, $user_id: ID, $createdAt: Stri
     }
 }
 
-mutation updateorder($deliveryTime: String, $remark: String, $updatedAt: String, $where: order_filter, $orderLogistics_id: ID, $payTime: String, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID, $orderShipFee: Float, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
-    updateorder: update_order(deliveryTime: $deliveryTime remark: $remark updatedAt: $updatedAt where: $where orderLogistics_id: $orderLogistics_id payTime: $payTime orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id orderShipFee: $orderShipFee count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
+mutation updateorder($remark: String, $updatedAt: String, $where: order_filter, $orderLogistics_id: ID, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
+    updateorder: update_order(remark: $remark updatedAt: $updatedAt where: $where orderLogistics_id: $orderLogistics_id orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
         result
         order {
-            deliveryTime
             remark
             updatedAt
 
-            payTime
             orderTotalPay
             createdAt
             orderStatus
 
             id
-            orderShipFee
             count
 
             productTotalPay
@@ -1504,10 +1522,12 @@ mutation updateorder($deliveryTime: String, $remark: String, $updatedAt: String,
     }
 }
 
-mutation createorderLogistics($updatedAt: String, $logisticsFee: Float, $expressId: String, $createdAt: String, $order_id: ID, $consigneeTel: String, $id: ID!, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String) {
-    createorderLogistics: create_orderLogistics(updatedAt: $updatedAt logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $id consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName) {
+mutation createorderLogistics($deliveryTime: String, $serviceStore: String, $updatedAt: String, $logisticsFee: Float, $expressId: String, $createdAt: String, $order_id: ID, $consigneeTel: String, $id: ID!, $expressName: String, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String) {
+    createorderLogistics: create_orderLogistics(deliveryTime: $deliveryTime serviceStore: $serviceStore updatedAt: $updatedAt logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $id expressName: $expressName consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName) {
         result
         orderLogistics {
+            deliveryTime
+            serviceStore
             updatedAt
             logisticsFee
             expressId
@@ -1515,6 +1535,7 @@ mutation createorderLogistics($updatedAt: String, $logisticsFee: Float, $express
 
             consigneeTel
             id
+            expressName
             consignAddress
             LogisticsStatus
 
@@ -1523,10 +1544,12 @@ mutation createorderLogistics($updatedAt: String, $logisticsFee: Float, $express
     }
 }
 
-mutation updateorderLogistics($updatedAt: String, $where: orderLogistics_filter, $logisticsFee: Float, $expressId: String, $createdAt: String, $order_id: ID, $consigneeTel: String, $id: ID, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String) {
-    updateorderLogistics: update_orderLogistics(updatedAt: $updatedAt where: $where logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $id consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName) {
+mutation updateorderLogistics($deliveryTime: String, $serviceStore: String, $updatedAt: String, $where: orderLogistics_filter, $logisticsFee: Float, $expressId: String, $createdAt: String, $order_id: ID, $consigneeTel: String, $id: ID, $expressName: String, $consignAddress: String, $LogisticsStatus: String, $user_id: ID, $consigneeName: String) {
+    updateorderLogistics: update_orderLogistics(deliveryTime: $deliveryTime serviceStore: $serviceStore updatedAt: $updatedAt where: $where logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $id expressName: $expressName consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName) {
         result
         orderLogistics {
+            deliveryTime
+            serviceStore
             updatedAt
             logisticsFee
             expressId
@@ -1534,6 +1557,7 @@ mutation updateorderLogistics($updatedAt: String, $where: orderLogistics_filter,
 
             consigneeTel
             id
+            expressName
             consignAddress
             LogisticsStatus
 
@@ -1566,8 +1590,8 @@ mutation createorderProduct($updatedAt: String, $productColor: String, $unit: St
     }
 }
 
-mutation deleteproduct($recommend: Int, $updatedAt: String, $where: product_filter, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID, $intro: String, $price: Float, $category_id: ID, $img: String, $stock: Int) {
-    deleteproduct: delete_product(recommend: $recommend updatedAt: $updatedAt where: $where unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro price: $price category_id: $category_id img: $img stock: $stock)
+mutation deleteproduct($recommend: Int, $updatedAt: String, $where: product_filter, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID, $intro: String, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int) {
+    deleteproduct: delete_product(recommend: $recommend updatedAt: $updatedAt where: $where unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock)
 }
 
 mutation createcategory($id: ID!, $name: String, $img: String, $order: Int, $status: String, $createdAt: String, $updatedAt: String) {

+ 17 - 10
ecommerce.csv

@@ -44,7 +44,7 @@ updatedAt,string,
 userSearch,collection,
 id,ID,key
 user_id,ID,non-null
-keyword,int,non-null-list	
+keyword,int,non-null-list
 createdAt,string,non-null
 updatedAt,string,
 userCollect,collection,
@@ -80,6 +80,7 @@ stock,int,
 unit,string,non-null
 status,string,
 recommend,int,
+discountRate,float,
 createdAt,string,non-null
 updatedAt,string,
 specificationStock,collection,
@@ -87,6 +88,8 @@ id,ID,key
 product_id,ID,non-null
 color,string,
 size,string,
+slideImg,string,list
+detailImg,string,list
 stock,int,
 status,string,
 createdAt,string,non-null
@@ -102,9 +105,6 @@ count,int,non-null
 orderStatus,string,non-null
 orderPay_id,ID,
 orderLogistics_id,ID,
-orderShipFee,float,
-payTime,string,
-deliveryTime,string,
 createdAt,string,non-null
 updatedAt,string,
 orderProduct,collection,
@@ -121,7 +121,7 @@ productSize,string,
 orderPay_id,ID,non-null
 unit,string,non-null
 count,int,non-null
-productPay,float,	
+productPay,float,
 orderPay,float,non-null
 createdAt,string,non-null
 updatedAt,string,
@@ -129,21 +129,28 @@ orderLogistics,collection,
 id,ID,key
 user_id,ID,non-null
 order_id,ID,non-null
+expressName,string,non-null
 expressId,string,non-null
+serviceStore,string,
 consigneeName,string,non-null
 consigneeTel,string,non-null
 consignAddress,string,non-null
-LogisticsStatus,string,	
-logisticsFee,float,	
+deliveryTime,string,
+LogisticsStatus,string,
+logisticsFee,float,
 createdAt,string,non-null
 updatedAt,string,
 orderPay,collection,
 id,ID,key
 user_id,ID,non-null
-order_id,ID,non-null
-totalPay,float,non-null
+openid,string,non-null
+tradeNo,string,non-null
+totalFee,float,non-null
+cashFee,float,non-null
 transactionId,string,non-null
-payTime,string,non-null
+time,string,non-null
+createdAt,string,non-null
+updatedAt,string,
 shop,collection,
 id,ID,key
 name,string,non-null

+ 248 - 0
structure.md

@@ -0,0 +1,248 @@
+# 标准电商(简约版) 数据结构
+
+## 用户系统
+
+### user - 用户表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+用户标识 | id | ID | key|不显示|前端|yes
+用户微信标识 | openid | String ||不显示|前端|yes
+用户名 | username | String ||显示|用户|yes
+密码 | password | String | |显示|用户|yes
+手机号码  | telephone | String ||显示|用户|option
+邮箱 | email | String ||显示|用户|option
+用户信息 | userData_id | String | |不显示|前端|yes
+创建时间 | createdAt | String |
+更新时间 | updatedAt | String |
+
+### userData - 用户信息表(部分字段选择使用)
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+用户标识 | id | ID | key|不显示|前端|yes
+昵称 | nickname | String ||显示|前端|yes
+头像 | avatar | String ||显示|前端|yes
+是否会员 | isVip | Boolean ||显示|前端|option
+会员卡号 | vipCode | String ||显示|前端|option
+积分 | userPoint | Int | |显示|前端|option
+创建时间 | createdAt | String |
+更新时间 | updatedAt | String |
+
+### admin - 管理员表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+用户标识 | id | ID | key|不显示|前端|yes
+用户微信标识 | openid | String ||不显示|前端|yes
+用户名 | username | String ||显示|用户|yes
+密码 | password | String | |显示|用户|yes
+手机号码  | telephone | String ||显示|用户|option
+邮箱 | email | String ||显示|用户|option
+创建时间 | createdAt | String |
+更新时间 | updatedAt | String |
+
+### userAddress - 用户收货地址表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+标识 | id | ID | key|不显示|前端|yes
+用户标识 | user_id | String | non-null|不显示|前端|yes
+收货人姓名 | username | String | non-null|显示|用户|yes
+收货人手机号码 | telephone | String | non-null|显示|用户|yes
+省份 | province | String | non-null|显示|用户|yes
+市  | city | String | non-null|显示|用户|yes
+区 | area | String | non-null|显示|用户|yes
+详细地址 | address | String | non-null|显示|用户|yes
+邮编(可选) | postcode | String ||显示|用户|option
+是否默认收货地址(0,1) | default | Int ||显示|用户|option
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+删除时间 | deleteddAt | String |
+
+### userSearch - 用户搜索历史表(选择使用)
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+标识 | id | ID | key|不显示|前端|yes
+用户标识 | user_id | String | non-null|不显示|前端|yes
+关键字 | keyword | Array | non-null-list|显示|用户|option
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### userCollect - 用户商品收藏表(选择使用)
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+标识 | id | ID | key|不显示|前端|yes
+用户标识 | user_id | String | non-null|不显示|前端|yes
+商品 | product_id | Array | non-null-list|不显示|前端|yes
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### userCart - 用户购物车商品表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+购物车编码 | id | ID | key|不显示|前端|yes
+用户标识 | user_id | String | non-null|不显示|前端|yes
+商品 | product_id | String | non-null|不显示|前端|yes
+规格 | specificationStock_id | String | non-null | 不显示 | 前端 | yes
+数量 | count | Int | non-null|不显示|用户|yes
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+
+## 商品系统
+
+###  category  商品类别表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+类别id | id | ID | key|不显示|前端|yes
+名称 | name | String | non-null |显示|用户|yes
+图标图片链接 | img | String | non-null | 不显示|用户|
+顺序 | order | Int  |  | 不显示 | 管理员 |
+状态(待用) | status | String | |显示|用户|
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### product 商品表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+商品编码 | id | ID | key|不显示|前端|yes
+商品类别idid | category_id_id | String | non-null|显示|用户|yes
+名称 | name | String | non-null|显示|用户|yes
+价格 | price | Double | non-null|显示|用户|yes
+展示图片链接 | img | String ||显示|用户|yes
+描述 | intro | String ||显示|用户|yes
+总库存量 | stock | Int | |显示|用户|yes
+可选单位(500g,1个...) | unit | String | non-null|显示|用户|option
+状态(-1下架,0预售,1上架,2 售罄) | status | String | |显示|用户|yes
+商家推荐 | recommend | Int |
+打折利率(如:8.8折) | discountRate | Dounble | | |
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### specificationStock  商品规格库存表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+规格库存id | id | ID | key|不显示|前端|yes
+颜色 | color | String | | 显示 | 前端 | |
+尺寸 | size | String  | String | 显示 | 前端 | |
+规格滑动图片链接 | slideImg | String |list |显示|用户|yes
+详情图片链接 | detailImg | String | list |显示|用户|yes
+商品id | product_id | String | non-null |  |  前端 | yes
+规格库存量 | stock | Int | |显示| 前端 | yes
+状态(-1下架,0预售,1上架,2 售罄) | status | String | |显示|  |
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+
+## 订单系统
+
+### order - 订单信息表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+订单编号 | id | ID | key|不显示|前端|yes
+用户 | user_id | String | non-null|不显示|前端|yes
+收货地址|userAddress_id|String|non-null|不显示|前端|yes
+客户下单留言 | remark | String | |显示|用户|option
+商品总价 | productTotalPay | Double | non-null|显示|前端|yes
+实际总付款 | orderTotalPay | Double | non-null|显示|前端|yes
+商品总数量 | count | Int | non-null|显示|用户|yes
+订单状态(0未付款,1已付款,2已发货,3已签收) | orderStatus | String | non-null|显示|前端|yes
+支付结果 | orderPay_id | String | non-null|显示|前端|yes
+物流 | orderLogistics_id | String ||显示|前端|option
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### orderProduct - 订单商品表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+订单编号 | id | ID | key|不显示|前端|yes
+用户 | user_id | String | non-null|不显示|前端|yes
+订单 | order_id | String | non-null|不显示|前端|yes
+商品 | product_id | String |  non-null|不显示|前端|yes
+规格 | specificationStock_id | String |  non-null|不显示|前端|yes
+下单时商品名称 | productName | String | non-null |显示|前端|yes
+下单时商品图片 | productImg | String | non-null |显示|前端|yes
+下单时商品价格 | productPrice | Double | non-null |显示|前端|yes
+下单时商品颜色 | productColor | String |   |显示|前端|yes
+下单时商品尺寸 | productSize |  String |  |显示|前端|yes
+支付结果 | orderPay_id | String | non-null|显示|前端|yes
+购买单位(500g,1个...) | unit | String | non-null|显示|前端|yes
+数量 | count | Int | non-null|显示|用户|yes
+商品总价 | productPay | Double ||显示|前端|yes
+此商品实付款 | orderPay | Double | non-null|显示|前端|yes
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### orderLogistics - 订单物流表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+订单编号 | id | ID | key|不显示|前端|yes
+用户 | user_id | String | non-null|不显示|前端|yes
+订单 | order_id | String | non-null|不显示|前端|yes
+快递名(包含上门自提) | expressName | String |  |  显示 | 用户 |
+发货快递单号 | expressId | String | non-null|显示|用户|yes
+发货地(包含服务门店) | serviceStore |  | 显示 |
+收货人姓名 | consigneeName | String | non-null显示|用户|yes
+收货人Tel | consigneeTel | String | non-null显示|用户|yes
+收货人地址 | consignAddress | String | non-null显示|用户|yes
+发货时间 | deliveryTime | String ||显示|前端|option
+物流状态 | LogisticsStatus | String 显示|后端|yes
+物流运费 | logisticsFee | Double |显示|后端|yes
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### orderPay - 订单支付表(暂未设计退款售后)
+微信支付返回结果
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+订单编号 | id | ID | key|不显示|前端|yes
+用户 | user_id | String | non-null|不显示|前端|yes
+微信用户id | openid | String | non-null | 不显示 | 后端 |
+订单号 | tradeNo | String | non-null|不显示|后端|yes
+支付金额 | totalFee | Double | non-null|显示|后端|yes
+支付金额 | cashFee | Double | non-null|显示|后端|yes
+交易单号 | transactionId | String | non-null | 后端 |
+微信返回时间 | time | String | non-null | 后端 |
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+## 管理商铺系统
+
+### shop 店铺表
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+规格库存id | id | ID | key|不显示|前端|yes
+店铺名称 | name | String | non-null | 显示 | 管理员 | |
+联系电话 | telephone | String |  | 显示 | 管理员 | |
+店铺图片 | img | list | | 显示 | 管理员 | |
+轮播图 | slideshow | list  |  | 显示 | 管理员 |  |
+地址 | address | String  |  | 显示 | 管理员 | |
+简介 | intro | String |  | 显示 |   管理员  |
+描述 | description | String |  | 显示  |   管理员  |
+公告 | notice | String | |显示|  管理员  |
+状态() | status | String | |显示|  |
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |
+
+### slideshow 首页轮播图
+
+字段含义 | 字段名 | 字段类型 | 字段描述|显示类型|填写方|必填?|
+---|---|--- |---|---|--- |---
+id | id | ID | key|显示|前端|yes
+名称 | name | String  |  | 显示 | 管理员 |  |
+图片 | img | String |non-null | 显示 | 管理员 | yes
+展示状态(1:展示   0:不展示) |  status | Int | non-null |
+创建时间 | createdAt | String | non-null
+更新时间 | updatedAt | String |

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません