初始化仓库
This commit is contained in:
60
common/modelsgii/BaseConfig.php
Normal file
60
common/modelsgii/BaseConfig.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "{{%base_config}}".
|
||||
*
|
||||
* @property $id ID
|
||||
* @property $store_id 门店id
|
||||
* @property $type 类型
|
||||
* @property $desc 描述
|
||||
* @property $content 内容
|
||||
* @property $chang_at 变更时间
|
||||
* @property $status 是否删除0否1是
|
||||
* @property $end 区分端1用户端2服务端
|
||||
* @property $created_at 创建时间
|
||||
* @property $updated_at 更新时间
|
||||
*/
|
||||
class BaseConfig extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return '{{%base_config}}';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[[ 'desc', 'content'], 'string'],
|
||||
[['end','store_id','change_at', 'status', 'created_at', 'updated_at','type'], 'integer'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'store_id' => '门店ID',
|
||||
'type' => '类型',
|
||||
'end' => '区分端1用户端2服务端',
|
||||
'desc' => '描述',
|
||||
'content' => '内容',
|
||||
'chang_at' => '变更时间',
|
||||
'status' => '是否删除0否1是',
|
||||
'created_at' => '创建时间',
|
||||
'updated_at' => '更新时间',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user