123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateHotSpotsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('hot_spots', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('open_status')->comment('开放状态');
- $table->string('number')->comment('编号');
- $table->string('name')->comment('名称');
- $table->string('address')->comment('位置');
- $table->text('hot_info')->comment('热点简介');
- $table->date('star_date')->comment('开始日期');
- $table->date('end_date')->comment('结束日期');
- $table->time('star_time')->comment('开始时间');
- $table->time('end_time')->comment('结束时间');
- $table->json('pics')->comment('宣传照片');
- $table->integer('type')->comment('类别')->nullable();
- $table->integer('link_id')->comment('关联ID')->nullable();
- $table->integer('create_id')->comment('创建者ID');
- $table->integer('update_id')->comment('更新者ID');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('hot_spots');
- }
- }
|