add banned at

This commit is contained in:
iVampireSP.com 2022-09-13 19:14:23 +08:00
parent 20a0d32d21
commit 14fc6c39c1
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -0,0 +1,35 @@
<?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::table('users', function (Blueprint $table) {
//
$table->dateTime('banned_at')->nullable()->comment('封禁时间')->after('balance');
// reason
$table->string('banned_reason')->nullable()->after('banned_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
//
});
}
};