| 12345678910111213141516171819202122 | 
							- <?php
 
- namespace app\model;
 
- use support\Model;
 
- class CollegeTeaching extends Model
 
- {
 
-     protected $table = 'college_teaching';
 
-     protected $primaryKey = 'teaching_id';
 
-     protected $dateFormat = 'U';
 
-     public const CREATED_AT = 'teaching_addTime';
 
-     public const UPDATED_AT = 'teaching_updateTime';
 
-     public function course(){
 
-         return $this->hasOne(CollegeCourses::class,'courses_id','teaching_courses_id');
 
-     }
 
- }
 
 
  |