parent
6fb6919685
commit
a49007b620
@ -0,0 +1,24 @@ |
||||
<?php |
||||
|
||||
namespace app\common\model\store; |
||||
|
||||
use app\common\model\UploadFile; |
||||
use cores\BaseModel; |
||||
|
||||
class StoreServerConfig extends BaseModel |
||||
{ |
||||
// 定义表名 |
||||
protected $name = 'store_server_config'; |
||||
|
||||
// 定义主键 |
||||
protected $pk = 'id'; |
||||
|
||||
protected $dateFormat = 'Y-m-d H:i:s'; |
||||
|
||||
public function IconImage() { |
||||
return $this->hasOne(UploadFile::class, 'file_id', 'icon_image_id') |
||||
->bind(['icon_url' => 'preview_url']); |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue