UniversityEventApplyModel.php 525 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\common\model;
  3. use think\Db;
  4. use think\Model;
  5. /**
  6. * 群组
  7. */
  8. class UniversityEventApplyModel extends Model
  9. {
  10. // 表名
  11. protected $name = 'university_event_apply';
  12. // 开启自动写入时间戳字段
  13. protected $autoWriteTimestamp = false;
  14. // 定义时间戳字段名
  15. protected $createTime = false;
  16. protected $updateTime = false;
  17. protected $deleteTime = false;
  18. public function user()
  19. {
  20. return $this->hasOne(UserModel::class, 'id', 'user_id');
  21. }
  22. }