2018_02_07_100543_create_wx_guide.php
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWxGuide extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wx_guide', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->nullable()->comment('领取的导游id');
            $table->string('qrcode')->comment('优惠二维码');
            $table->integer('spot_id')->comment('景点id');
            $table->integer('coupon_type_id')->comment('优惠券类型id');
            $table->integer('business_id')->comment('商户id');
            $table->timestamp('expire_time')->comment('活动截止时间');
            $table->integer('number')->comment('优惠群个数');
            $table->integer('old')->comment('区分老旧数据');
            $table->timestamps();
        });
    }
    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wx_guide');
    }
}