2018_07_31_060437_create_show_times_table.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateShowTimesTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('show_times', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('number')->comment('编号');
  17. $table->string('name')->comment('名称');
  18. $table->integer('type')->comment('类别');
  19. $table->date('star_date')->comment('开始日期');
  20. $table->date('end_date')->comment('结束日期');
  21. $table->time('star_time')->comment('开始时间');
  22. $table->time('end_time')->comment('结束时间');
  23. $table->integer('create_id')->comment('创建者ID');
  24. $table->integer('update_id')->comment('更新者ID');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::dropIfExists('show_times');
  36. }
  37. }