2018_01_16_174541_create_spot_table.php
1.28 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
40
41
42
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSpotTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('spot', function (Blueprint $table) {
            $table->increments('id');
            $table->string('spotname')->comment('景点名');
            $table->integer('business_id')->comment('关联id');
            $table->string('main_title')->comment('主标题');
            $table->string('vic_title')->comment('副标题');
            $table->string('detail_img')->nullable()->comment('展示界面的图片');
            $table->string('wx_logo')->comment('微型头像');
            $table->string('go_url')->nullable()->comment('定制化界面');
            $table->string('page_id')->comment('微信id');
            $table->string('code')->comment('唯一值');
            $table->string('time')->comment('开始时间');
            $table->string('overtime')->comment('结束时间');
            $table->timestamps();
        });
    }
    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('spot');
    }
}