first commit

This commit is contained in:
2026-01-18 09:52:48 +08:00
commit 836bdc9409
584 changed files with 40891 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void {
Schema::create('member_social', function (Blueprint $table) {
$table->id()->uniqid()->comment('主键id');
$table->unsignedBigInteger('member_id')->comment('会员id');
$table->string('type', 20)->comment('第三方类型');
$table->string('openid', 50)->comment('第三方openid');
$table->string('nickname')->comment('昵称');
$table->string('avatar')->nullable()->comment('头像');
$table->string('gender', 10)->nullable()->comment('性别');
$table->string('country', 50)->nullable()->comment('国家');
$table->string('province', 50)->nullable()->comment('省份');
$table->string('city', 50)->nullable()->comment('城市');
$table->string('language', 50)->nullable()->comment('语言');
$table->string('unionid', 50)->nullable()->comment('第三方unionid');
$table->timestamp('created_at')->nullable()->comment('创建时间');
$table->timestamp('updated_at')->nullable()->comment('更新时间');
$table->engine = 'InnoDB';
$table->charset = 'utf8mb4';
$table->collation = 'utf8mb4_unicode_ci';
$table->comment('会员第三方登录表');
});
}
/**
* Reverse the migrations.
*/
public function down(): void {
Schema::dropIfExists('member_social');
}
};

View File

View File

@@ -0,0 +1,22 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace Modules\Wechat\Database\Seeders;
use Illuminate\Database\Seeder;
class WechatDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// $this->call([]);
}
}