NotificationLog.php 1.6 KB

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