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.
36 lines
1.0 KiB
36 lines
1.0 KiB
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateEmployeeModifiedLogTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('uc_employee_modified_log_t', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->bigInteger('employee_id')->comment('操作人');
|
|
$table->bigInteger('modified_employee_id')->comment('被操作人');
|
|
$table->set('type', ['CREATE', 'BASE', 'PASSWORD', 'BANK', 'SOCIAL', 'POWER'])->comment('操作类型');
|
|
$table->string('info')->comment('操作内容');
|
|
$table->string('ip',50)->comment('操作IP');
|
|
$table->timestamp('created_at')->comment('操作时间');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('uc_employee_modified_log_t');
|
|
}
|
|
}
|
|
|