AlbumXyxUserModel.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Notifications\Notifiable;
  4. use Laravel\Passport\HasApiTokens;
  5. use Illuminate\Foundation\Auth\User as Authenticatable;
  6. use Illuminate\Database\Eloquent\SoftDeletes;
  7. /**
  8. * @description 小游戏用户
  9. * @author system;
  10. * @version 1.0
  11. * @date 2018-05-25 10:59:46
  12. *
  13. */
  14. class AlbumXyxUserModel extends Authenticatable
  15. {
  16. use HasApiTokens, Notifiable, SoftDeletes;
  17. /**
  18. * 数据表名
  19. *
  20. * @var string
  21. *
  22. */
  23. protected $table = 'album_xyx_user';
  24. /**
  25. 主键
  26. */
  27. protected $primaryKey = 'id';
  28. //分页
  29. protected $perPage = PAGE_NUMS;
  30. /**
  31. * 可以被集体附值的表的字段
  32. *
  33. * @var string
  34. */
  35. protected $fillable = [
  36. 'username',
  37. 'is_agent',
  38. 'wechat_open_id',
  39. 'wechat_union_id',
  40. 'avatar',
  41. 'store_id',
  42. 'xcx_id'
  43. ];
  44. }