瀏覽代碼

添加小程序登陆验证

chenxiqiang 6 年之前
父節點
當前提交
e329770fcf

+ 4
- 2
manage-server/database/migrations/2018_08_10_073946_create_products_table.php 查看文件

@@ -17,17 +17,19 @@ class CreateProductsTable extends Migration
17 17
          *
18 18
     	'name', // 产品名称
19 19
 		'info', // 产品信息
20
-		'price', // 产品价格
21
-		'status', // 产品状态, 上架/下架
20
+        'price', // 产品价格
22 21
         'classify', // 产品分类
22
+        'color', // 产品颜色款色
23 23
         'collect_num', // 收藏数
24 24
         'sell_num', // 销量
25
+		'status', // 产品状态, 上架/下架
25 26
          */
26 27
         Schema::create('products', function (Blueprint $table) {
27 28
             $table->increments('id');
28 29
             $table->timestamps();
29 30
             $table->string('name');
30 31
             $table->string('classify');
32
+            $table->string('color');
31 33
             $table->text('info');
32 34
             $table->double('price');
33 35
             $table->integer('status');

+ 2
- 0
manage-server/database/migrations/2018_08_10_074321_create_product_orders_table.php 查看文件

@@ -18,6 +18,7 @@ class CreateProductOrdersTable extends Migration
18 18
         'wechat_id', // 微信号id(open_id)
19 19
     	'product_id', // 产品名称
20 20
 		'product_name', // 产品信息
21
+        'color', // 产品颜色款色
21 22
 		'unit', // 产品单格
22 23
 		'amount', // 产品数量
23 24
 		'price', // 订单总价
@@ -34,6 +35,7 @@ class CreateProductOrdersTable extends Migration
34 35
             $table->string('wechat_id');
35 36
             $table->unsignedInteger('product_id');
36 37
             $table->string('product_name');
38
+            $table->string('color');
37 39
             $table->double('unit');
38 40
             $table->integer('amount');
39 41
             $table->double('price');

+ 0
- 1
manage-server/database/migrations/2018_08_10_075128_create_maternity_matron_orders_table.php 查看文件

@@ -15,7 +15,6 @@ class CreateMaternityMatronOrdersTable extends Migration
15 15
     {
16 16
         /*
17 17
          *
18
-         *
19 18
         'wechat_id', // 微信号id(open_id)
20 19
         'level', // 月嫂等级
21 20
         'expected_date', // 预产期

+ 2
- 1
manage-server/database/migrations/2018_08_10_075742_create_housekeeper_orders_table.php 查看文件

@@ -20,7 +20,8 @@ class CreateHousekeeperOrdersTable extends Migration
20 20
     	'people_num', //人口数量
21 21
         'area', // 房屋面积
22 22
         'server_time', // 服务时间: 全白天/住家
23
-        'rest', // 休息安排    	'address', // 服务地址
23
+        'rest', // 休息安排
24
+        'address', // 服务地址
24 25
     	'contact', // 联系人
25 26
     	'phone',	//联系电话
26 27
         'status', // 订单状态

+ 13
- 0
manage-server/database/migrations/2018_08_14_080203_create_comments_table.php 查看文件

@@ -13,8 +13,21 @@ class CreateCommentsTable extends Migration
13 13
      */
14 14
     public function up()
15 15
     {
16
+        /*
17
+         *
18
+        'wechat_id', // wechat
19
+        'order_type', // 订单类型
20
+        'order_id', // 订单id
21
+        'title', // 评论标题
22
+        'content', // 评论内容
23
+        'show' // 是否可视0, 1
24
+         *
25
+         */
16 26
         Schema::create('comments', function (Blueprint $table) {
17 27
             $table->increments('id');
28
+            $table->string('wechat_id');
29
+            $table->string('order_type');
30
+            $table->string('order_id');
18 31
             $table->string('title');
19 32
             $table->string('content');
20 33
             $table->integer('show');

Loading…
取消
儲存