UserBanLog.php 1.3 KB

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