UserAction.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Module\User\Models;
  3. use UCore\ModelCore;
  4. use App\Module\User\Enums\ACTION_STATUS;
  5. use App\Module\User\Enums\ACTION_TYPE;
  6. /**
  7. *
  8. * 用户操作记录
  9. *
  10. * field start
  11. * @property int $id
  12. * @property int $admin_id 做出操作的管理员ID
  13. * @property int $user_id 用户ID
  14. * @property \App\Module\User\Enums\ACTION_TYPE $type 类型
  15. * @property string $desc 描述
  16. * @property int $exp_time 有效期
  17. * @property int $re_id 关联操作-ID
  18. * @property string $re_type 关联操作-类型
  19. * @property \Carbon\Carbon $created_at
  20. * @property \Carbon\Carbon $updated_at
  21. * @property \Carbon\Carbon $deleted_at
  22. * @property \App\Module\User\Enums\ACTION_STATUS $status 状态
  23. * field end
  24. */
  25. class UserAction extends ModelCore
  26. {
  27. protected $casts = [
  28. 'type' => ACTION_TYPE::class,
  29. 'status' => ACTION_STATUS::class
  30. ];
  31. // attrlist start
  32. protected $fillable = [
  33. 'id',
  34. 'admin_id',
  35. 'user_id',
  36. 'type',
  37. 'desc',
  38. 'exp_time',
  39. 're_id',
  40. 're_type',
  41. 'status',
  42. ];
  43. // attrlist end
  44. }