You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/app/common/model/store/StoreServerConfig.php

24 lines
468 B

<?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']);
}
}