12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\admin\model\exam;
- use think\Model;
- class MaterialQuestionModel extends Model
- {
-
- protected $name = 'exam_material_question';
-
- protected $autoWriteTimestamp = 'int';
-
- protected $createTime = 'createtime';
- protected $updateTime = 'updatetime';
- protected $deleteTime = false;
-
- protected $append = [
- ];
- public function question()
- {
- return $this->belongsTo('QuestionModel', 'question_id', 'id');
-
- }
- public function parentQuestion()
- {
- return $this->belongsTo('QuestionModel', 'parent_question_id', 'id');
- }
- }
|