2018_07_31_022952_create_service_times_table.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateServiceTimesTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('service_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->integer('priority')->comment('优先级');
  20. $table->date('star_date')->comment('开始日期');
  21. $table->date('end_date')->comment('结束日期');
  22. $table->time('star_time')->comment('开始时间');
  23. $table->time('end_time')->comment('结束时间');
  24. $table->integer('create_id')->comment('创建者ID');
  25. $table->integer('update_id')->comment('更新者ID');
  26. $table->timestamps();
  27. });
  28. }
  29. /**
  30. * Reverse the migrations.
  31. *
  32. * @return void
  33. */
  34. public function down()
  35. {
  36. Schema::dropIfExists('service_times');
  37. }
  38. }