| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?phpnamespace Database\Seeders\Backend;use Database\Seeders\BaseSeeder;use Illuminate\Support\Facades\Hash;use Txj\Elastic\Facades\Eav;use Txj\Elastic\Facades\ES;class BaiduPanTokenSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'user_id' => ['type' => 'uBigint', 'title' => '用户名'],            'access_token' => ['type' => 'string', 'title' => '手机号'],            'expires_in' => ['type' => 'string', 'title' => 'expires_in'],            'refresh_token' => ['type' => 'string', 'title' => 'refresh_token'],            'scope' => ['type' => 'string', 'title' => 'scope', 'is_null' => 1],            'uk' => ['type' => 'string', 'title' => '百度网盘user_id', 'is_null' => 1],            'pan_user_info' => ['type' => 'json', 'title' => '百度网盘json', 'is_null' => 1],            'status' => ['type' => 'tinyint', 'title' => '状态', 'default' => 1, 'remark' => '1 启用'],        ];    }    /**     * 初始化内容     */    public function init()    {    }    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->schema = 'baidu_pan_token';        $this->title = '百度登录授权信息表';        $this->start();    }}
 |