| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?phpnamespace Database\Seeders\Agent;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 AgentWechatMiniProgramSeeder 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 = 'agent_wechat_mini_program';        $this->title = '代理商微信小程序登录表';        $this->start();    }}
 |