up()
up()
Run the migrations.
<?php
/**
* JingYao-backend
*
* @link https://gitee.com/wang-zhihui-release/jingyao-backend
* @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserCountDailiesTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('user_count_dailies', function (Blueprint $table) {
$table->id();
$table->string('date');
$table->integer('flow_user_count');
$table->integer('houser_count');
$table->integer('normal_count');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('user_count_dailies');
}
}