36 lines
828 B
PHP
36 lines
828 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('customer_log',function (Blueprint $table) {
|
|
$table->id()->autoIncrement();
|
|
$table->bigInteger('customer_id')->default(0)->index();
|
|
$table->string('action',255)->nullable();
|
|
$table->string('client_ip',255)->nullable();
|
|
$table->string('agent')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('customer_logs');
|
|
}
|
|
};
|