Ver código fonte

添加小程序登陆验证

chenxiqiang 6 anos atrás
pai
commit
e329770fcf

+ 4
- 2
manage-server/database/migrations/2018_08_10_073946_create_products_table.php Ver arquivo

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

+ 2
- 0
manage-server/database/migrations/2018_08_10_074321_create_product_orders_table.php Ver arquivo

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

+ 0
- 1
manage-server/database/migrations/2018_08_10_075128_create_maternity_matron_orders_table.php Ver arquivo

15
     {
15
     {
16
         /*
16
         /*
17
          *
17
          *
18
-         *
19
         'wechat_id', // 微信号id(open_id)
18
         'wechat_id', // 微信号id(open_id)
20
         'level', // 月嫂等级
19
         'level', // 月嫂等级
21
         'expected_date', // 预产期
20
         'expected_date', // 预产期

+ 2
- 1
manage-server/database/migrations/2018_08_10_075742_create_housekeeper_orders_table.php Ver arquivo

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

+ 13
- 0
manage-server/database/migrations/2018_08_14_080203_create_comments_table.php Ver arquivo

13
      */
13
      */
14
     public function up()
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
         Schema::create('comments', function (Blueprint $table) {
26
         Schema::create('comments', function (Blueprint $table) {
17
             $table->increments('id');
27
             $table->increments('id');
28
+            $table->string('wechat_id');
29
+            $table->string('order_type');
30
+            $table->string('order_id');
18
             $table->string('title');
31
             $table->string('title');
19
             $table->string('content');
32
             $table->string('content');
20
             $table->integer('show');
33
             $table->integer('show');

Carregando…
Cancelar
Salvar