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