| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <?phpnamespace 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 UserWechatMiniProgramSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'user_id' => ['type' => 'uBigInt', 'title' => '用户id'],            'openid' => ['type' => 'string_60', 'title' => '微信openid'],            'session_key' => ['type' => 'string_60', 'title' => '微信session_key'],            '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_mini_program';        $this->title = '用户表微信小程序登录';        $this->start();    }}
 |