123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace Database\Seeders\Frontend;
- use Database\Seeders\BaseSeeder;
- use Illuminate\Support\Facades\DB;
- use Illuminate\Support\Facades\Hash;
- use Illuminate\Support\Str;
- use Txj\Elastic\Facades\Eav;
- use Txj\Elastic\Facades\ES;
- class UserWechatAppSeeder extends BaseSeeder
- {
- public function getColumnData()
- {
- return [
- 'user_id' => ['type' => 'uBigInt', 'title' => '用户id'],
- 'openid' => ['type' => 'string_60', 'title' => '微信openid'],
- 'unionid' => ['type' => 'string_60', 'title' => '微信unionid'],
- 'nick' => ['type' => 'string_60', 'title' => '昵称'],
- 'wx_avatar' => ['type' => 'string', 'title' => '头像', 'is_null' => 1],
- 'wx_info' => ['type' => 'json', 'title' => '手机号', 'is_null' => 1],
- ];
- }
- /**
- * 初始化内容
- */
- public function init()
- {
- }
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- $this->schema = 'user_wechat_app';
- $this->title = '用户表手机app登录';
- $this->start();
- }
- }
|