UserBanLog.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Builder;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Database\Eloquent\Relations\HasOne;
  6. /**
  7. * 用户封禁日志
  8. *
  9. * @property int $id
  10. * @property int $user_id 用户ID
  11. * @property int $minutes 封禁账号时长,单位分钟
  12. * @property string $description 操作描述
  13. * @property int $status 状态:0-未处理、1-已处理
  14. * @property \Illuminate\Support\Carbon $created_at 创建时间
  15. * @property \Illuminate\Support\Carbon $updated_at 最后更新时间
  16. * @property-read \App\Models\User|null $user
  17. * @method static Builder|UserBanLog newModelQuery()
  18. * @method static Builder|UserBanLog newQuery()
  19. * @method static Builder|UserBanLog query()
  20. * @method static Builder|UserBanLog whereCreatedAt($value)
  21. * @method static Builder|UserBanLog whereDescription($value)
  22. * @method static Builder|UserBanLog whereId($value)
  23. * @method static Builder|UserBanLog whereMinutes($value)
  24. * @method static Builder|UserBanLog whereStatus($value)
  25. * @method static Builder|UserBanLog whereUpdatedAt($value)
  26. * @method static Builder|UserBanLog whereUserId($value)
  27. * @mixin \Eloquent
  28. */
  29. class UserBanLog extends Model {
  30. protected $table = 'user_ban_log';
  31. public function user(): HasOne {
  32. return $this->hasOne(User::class, 'id', 'user_id');
  33. }
  34. }