You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
847 B
35 lines
847 B
4 years ago
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateEmployeeLoginLogTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('uc_employee_login_log_t', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->bigInteger('employee_id');
|
||
|
$table->string('login_ip',100)->comment('登录IP');
|
||
|
$table->string('login_browser_info')->comment('浏览器信息');
|
||
|
$table->timestamp('created_at')->comment('登录时间');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('uc_employee_login_log_t');
|
||
|
}
|
||
|
}
|