审查视图

application/mobile/model/QuestionNote.php 447 字节
何书鹏 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
namespace app\mobile\model;

use think\Model;

class QuestionNote extends Model
{
	// 表名
    protected $name = 'mobile_question_note';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
何书鹏 authored
15 16 17 18 19

    // 题目信息
    public function question(){
    	return $this->belongsTo('Question');
    }
何书鹏 authored
20
}