1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateServiceTimesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('service_times', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('number')->comment('编号');
- $table->string('name')->comment('名称');
- $table->integer('type')->comment('类别');
- $table->integer('priority')->comment('优先级');
- $table->date('star_date')->comment('开始日期');
- $table->date('end_date')->comment('结束日期');
- $table->time('star_time')->comment('开始时间');
- $table->time('end_time')->comment('结束时间');
- $table->integer('create_id')->comment('创建者ID');
- $table->integer('update_id')->comment('更新者ID');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('service_times');
- }
- }
|