SystemNoticeLog.php 809 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace app\common\model\system\notice;
  3. use app\common\model\BaseModel;
  4. /**
  5. * Class SystemNoticeLog
  6. * @package app\common\model\system\notice
  7. * @author zfy
  8. * @day 2020/11/6
  9. */
  10. class SystemNoticeLog extends BaseModel
  11. {
  12. /**
  13. * @return string|null
  14. * @author zfy
  15. * @day 2020/11/6
  16. */
  17. public static function tablePk(): ?string
  18. {
  19. return 'notice_log_id';
  20. }
  21. /**
  22. * @return string
  23. * @author zfy
  24. * @day 2020/11/6
  25. */
  26. public static function tableName(): string
  27. {
  28. return 'system_notice_log';
  29. }
  30. /**
  31. * @return \think\model\relation\HasOne
  32. * @author zfy
  33. * @day 2020/11/6
  34. */
  35. public function notice()
  36. {
  37. return $this->hasOne(SystemNotice::class, 'notice_id', 'notice_id');
  38. }
  39. }