UserAction.php 860 B

123456789101112131415161718192021222324252627282930313233343536
  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 string $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 int $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. }