EmailLog.php 1.5 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. * 邮件/ServerChan发送日志
  9. * Class EmailLog
  10. *
  11. * @package App\Http\Models
  12. * @mixin Eloquent
  13. * @property int $id
  14. * @property int $type 类型:1-邮件、2-serverChan
  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|EmailLog newModelQuery()
  23. * @method static Builder|EmailLog newQuery()
  24. * @method static Builder|EmailLog query()
  25. * @method static Builder|EmailLog whereAddress($value)
  26. * @method static Builder|EmailLog whereContent($value)
  27. * @method static Builder|EmailLog whereCreatedAt($value)
  28. * @method static Builder|EmailLog whereError($value)
  29. * @method static Builder|EmailLog whereId($value)
  30. * @method static Builder|EmailLog whereStatus($value)
  31. * @method static Builder|EmailLog whereTitle($value)
  32. * @method static Builder|EmailLog whereType($value)
  33. * @method static Builder|EmailLog whereUpdatedAt($value)
  34. */
  35. class EmailLog extends Model
  36. {
  37. protected $table = 'email_log';
  38. protected $primaryKey = 'id';
  39. }