BaiduPanTokenSeeder.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Database\Seeders\Backend;
  3. use Database\Seeders\BaseSeeder;
  4. use Illuminate\Support\Facades\Hash;
  5. use Txj\Elastic\Facades\Eav;
  6. use Txj\Elastic\Facades\ES;
  7. class BaiduPanTokenSeeder extends BaseSeeder
  8. {
  9. public function getColumnData()
  10. {
  11. return [
  12. 'user_id' => ['type' => 'uBigint', 'title' => '用户名'],
  13. 'access_token' => ['type' => 'string', 'title' => '手机号'],
  14. 'expires_in' => ['type' => 'string', 'title' => 'expires_in'],
  15. 'refresh_token' => ['type' => 'string', 'title' => 'refresh_token'],
  16. 'scope' => ['type' => 'string', 'title' => 'scope', 'is_null' => 1],
  17. 'uk' => ['type' => 'string', 'title' => '百度网盘user_id', 'is_null' => 1],
  18. 'pan_user_info' => ['type' => 'json', 'title' => '百度网盘json', 'is_null' => 1],
  19. 'status' => ['type' => 'tinyint', 'title' => '状态', 'default' => 1, 'remark' => '1 启用'],
  20. ];
  21. }
  22. /**
  23. * 初始化内容
  24. */
  25. public function init()
  26. {
  27. }
  28. /**
  29. * Run the database seeds.
  30. *
  31. * @return void
  32. */
  33. public function run()
  34. {
  35. $this->schema = 'baidu_pan_token';
  36. $this->title = '百度登录授权信息表';
  37. $this->start();
  38. }
  39. }