智慧教务系统 PHP-NiuCloud框架开发
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.
 
 
 
 
 
 

45 lines
1.3 KiB

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\model\applet;
use core\base\BaseModel;
use think\model\relation\HasOne;
/**
* 小程序包 站点版本模型
*/
class AppletSiteVersion extends BaseModel
{
/**
* 数据表主键
* @var string
*/
protected $pk = 'id';
/**
* 模型名称
* @var string
*/
protected $name = 'applet_site_version';
/**
* 版本主表
* @return HasOne
*/
public function appletVersion()
{
return $this->hasOne(AppletVersion::class, 'id', 'version_id')->joinType('left')
->withField('desc, status, version, version_num, release_version')
->bind(['desc', 'status', 'version', 'version_num', 'release_version']);
}
}