course/app/common/model/StudentFeedback.php
2024-07-23 07:38:53 +08:00

42 lines
1.1 KiB
PHP

<?php
namespace app\common\model;
use app\BaseModel;
use support\Model;
/**
* wa_student_feedback 学成课程反馈
* @property integer $id (主键)
* @property integer $student_id 学生
* @property integer $teacher_schedule_time_id 课程
* @property integer $teacher_id 老师
* @property integer $subject_id 课程
* @property string $date 日期
* @property string $time 时间
* @property string $start_time
* @property string $end_time
* @property mixed $created_at 创建时间
* @property string $updated_at 更新时间
* @property string $deleted_at
*/
class StudentFeedback extends BaseModel
{
public function student()
{
return $this->hasOne(Student::class, 'id', 'student_id')->bind(['student_name', 'student_account'=>'account']);
}
public function teacher()
{
return $this->hasOne(Teacher::class, 'id', 'teacher_id')->bind(['teacher_name', 'teacher_account'=>'account']);
}
public function subject()
{
return $this->hasOne(Subject::class, 'id', 'subject_id')->bind(['subject_name', 'english_name']);
}
}