luck-draw/app/model/Feedback.php

24 lines
371 B
PHP

<?php
namespace app\model;
use think\model\relation\HasOne;
/**
* 意见与反馈
*
* Class Feedback
* @package app\model
*/
class Feedback extends Base
{
/**
* 关联提交者
*
* @return HasOne
*/
public function account(): HasOne
{
return $this->hasOne(Account::class, 'id', 'account_id');
}
}