28 lines
509 B
PHP
28 lines
509 B
PHP
<?php
|
|
namespace app\api\model;
|
|
|
|
/**
|
|
* 反馈附件类
|
|
* @mixin \think\Model
|
|
*/
|
|
class QuestionAttachment extends BaseModel
|
|
{
|
|
protected $schema = [
|
|
'id' =>'int',
|
|
'question_id' =>'int',
|
|
'attach' =>'string',
|
|
'create_time' =>'int',
|
|
'update_time' =>'int',
|
|
];
|
|
|
|
|
|
/**
|
|
* 附件-问题关联表
|
|
* @return \think\model\relation\BelongsTo
|
|
*/
|
|
public function getQuestion()
|
|
{
|
|
return $this->belongsTo(Question::class);
|
|
}
|
|
}
|