feat: 微客宝H5客户端 - 基础架构+核心页面
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('customers', function (Blueprint $table) {
|
||||
$table->string('password')->nullable()->after('phone')->comment('客户端登录密码');
|
||||
$table->string('open_id', 100)->nullable()->unique()->after('password')->comment('微信 openid');
|
||||
$table->timestamp('last_login_at')->nullable()->after('open_id');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('customers', function (Blueprint $table) {
|
||||
$table->dropColumn(['password', 'open_id', 'last_login_at']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user