2018_01_16_174838_create_guide_rules_table.php
1.08 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
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGuideRulesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('guide_rule', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('spot_id')->comment('景点id');
$table->unsignedInteger('guide_fee')->comment('微导览费用单位分');
$table->string('title')->comment('标题');
$table->text('description')->comment('微导览描述');
$table->string('guide_img')->comment('微导览图片');
$table->integer('level')->comment('星级');
$table->unsignedInteger('own_time')->default(3)->comment('享受服务的时间');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('guide_rule');
}
}