2018_08_01_010714_create_hot_spots_table.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateHotSpotsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('hot_spots', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('open_status')->comment('开放状态');
  17. $table->string('number')->comment('编号');
  18. $table->string('name')->comment('名称');
  19. $table->string('address')->comment('位置');
  20. $table->text('hot_info')->comment('热点简介');
  21. $table->date('star_date')->comment('开始日期');
  22. $table->date('end_date')->comment('结束日期');
  23. $table->time('star_time')->comment('开始时间');
  24. $table->time('end_time')->comment('结束时间');
  25. $table->json('pics')->comment('宣传照片');
  26. $table->integer('type')->comment('类别')->nullable();
  27. $table->integer('link_id')->comment('关联ID')->nullable();
  28. $table->integer('create_id')->comment('创建者ID');
  29. $table->integer('update_id')->comment('更新者ID');
  30. $table->timestamps();
  31. });
  32. }
  33. /**
  34. * Reverse the migrations.
  35. *
  36. * @return void
  37. */
  38. public function down()
  39. {
  40. Schema::dropIfExists('hot_spots');
  41. }
  42. }