hujiao-gui/database/migrations/2019_05_22_090855_create_ta...

39 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTask extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('task', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->comment('任务名称');
$table->timestamp('datetime_start')->nullable()->comment('任务开始时间');
$table->timestamp('datetime_end')->nullable()->comment('任务结束时间');
$table->integer('gateway_id')->comment('出局网关ID');
$table->integer('queue_id')->nullable()->comment('转接队列ID');
$table->integer('max_channel')->default(0)->comment('最大并发');
$table->tinyInteger('status')->default(1)->comment('状态1-停止2-启动3-完成');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('task');
}
}