init: 项目初始代码
This commit is contained in:
27
app/api/model/QuestionAttachment.php
Normal file
27
app/api/model/QuestionAttachment.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user