NotificationLog.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. * Class NotificationLog
  10. *
  11. * @package App\Http\Models
  12. * @mixin Eloquent
  13. * @property int $id
  14. * @property int $type 类型:1-邮件、2-ServerChan、3-Bark
  15. * @property string $address 收信地址
  16. * @property string $title 标题
  17. * @property string $content 内容
  18. * @property int $status 状态:-1发送失败、0-等待发送、1-发送成功
  19. * @property string|null $error 发送失败抛出的异常信息
  20. * @property Carbon|null $created_at 创建时间
  21. * @property Carbon|null $updated_at 最后更新时间
  22. * @method static Builder|NotificationLog newModelQuery()
  23. * @method static Builder|NotificationLog newQuery()
  24. * @method static Builder|NotificationLog query()
  25. * @method static Builder|NotificationLog whereAddress($value)
  26. * @method static Builder|NotificationLog whereContent($value)
  27. * @method static Builder|NotificationLog whereCreatedAt($value)
  28. * @method static Builder|NotificationLog whereError($value)
  29. * @method static Builder|NotificationLog whereId($value)
  30. * @method static Builder|NotificationLog whereStatus($value)
  31. * @method static Builder|NotificationLog whereTitle($value)
  32. * @method static Builder|NotificationLog whereType($value)
  33. * @method static Builder|NotificationLog whereUpdatedAt($value)
  34. */
  35. class NotificationLog extends Model
  36. {
  37. protected $table = 'notification_log';
  38. protected $primaryKey = 'id';
  39. }