|
@@ -46,9 +46,9 @@ class CreateProducts < ActiveRecord::Migration
|
|
|
|
|
|
|
|
#外部现金价格(分)
|
|
#外部现金价格(分)
|
|
|
t.column :price, :integer, :null=>false
|
|
t.column :price, :integer, :null=>false
|
|
|
- #内部代金券价格(分)
|
|
|
|
|
|
|
+ #内部提货券价格(分)
|
|
|
t.column :robo_balance_price, :integer, :null => false
|
|
t.column :robo_balance_price, :integer, :null => false
|
|
|
- #外部代金券价格(分)
|
|
|
|
|
|
|
+ #外部提货券价格(分)
|
|
|
t.column :mall_balance_price, :integer, :null => false
|
|
t.column :mall_balance_price, :integer, :null => false
|
|
|
|
|
|
|
|
#采购价格(分)
|
|
#采购价格(分)
|
|
@@ -140,13 +140,13 @@ class CreateProducts < ActiveRecord::Migration
|
|
|
t.column :wx_user_id, :integer, :null=>false
|
|
t.column :wx_user_id, :integer, :null=>false
|
|
|
#份数
|
|
#份数
|
|
|
t.column :count, :integer, :null=>false
|
|
t.column :count, :integer, :null=>false
|
|
|
- # 支付时商品的代金券单价
|
|
|
|
|
|
|
+ # 支付时商品的提货券单价
|
|
|
t.column :unit_robo_balance_price, :integer, :null=>false
|
|
t.column :unit_robo_balance_price, :integer, :null=>false
|
|
|
# 支付时商品的现金单价
|
|
# 支付时商品的现金单价
|
|
|
t.column :unit_price, :integer, :null=>false
|
|
t.column :unit_price, :integer, :null=>false
|
|
|
- #订单总价(单位) 根据支付方式来显示金钱分还是代金券还是代金券
|
|
|
|
|
|
|
+ #订单总价(单位) 根据支付方式来显示金钱分还是提货券还是提货券
|
|
|
t.column :total_price, :integer, :null=>false
|
|
t.column :total_price, :integer, :null=>false
|
|
|
- #支付总价(单位) 根据支付方式来显示金钱分还是代金券还是代金券
|
|
|
|
|
|
|
+ #支付总价(单位) 根据支付方式来显示金钱分还是提货券还是提货券
|
|
|
t.column :paied_price, :integer, :default=>0
|
|
t.column :paied_price, :integer, :default=>0
|
|
|
#进货总价(分)除以100就是元
|
|
#进货总价(分)除以100就是元
|
|
|
t.column :buy_price, :integer, :default=>0
|
|
t.column :buy_price, :integer, :default=>0
|
|
@@ -156,7 +156,7 @@ class CreateProducts < ActiveRecord::Migration
|
|
|
t.column :trade_no, :string
|
|
t.column :trade_no, :string
|
|
|
#状态
|
|
#状态
|
|
|
t.column :status, :string
|
|
t.column :status, :string
|
|
|
- #支付方式:微信、代金券、代金券; weixinpay, balance, integral
|
|
|
|
|
|
|
+ #支付方式:微信、提货券、提货券; weixinpay, balance, integral
|
|
|
t.column :pay_way, :string
|
|
t.column :pay_way, :string
|
|
|
#支付来源: 公众号 gzh、小程序 xcx、第五创系统d5c_sys
|
|
#支付来源: 公众号 gzh、小程序 xcx、第五创系统d5c_sys
|
|
|
t.column :source, :string
|
|
t.column :source, :string
|