初始化仓库
This commit is contained in:
53
common/modelsgii/SystemConfig.php
Normal file
53
common/modelsgii/SystemConfig.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_system_config".
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $name 100
|
||||
* @property string $type 类型1中药2配方颗粒
|
||||
* @property string $value 值
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
*/
|
||||
class SystemConfig extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_system_config';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['name', 'type', 'value'], 'required'],
|
||||
[['type','created_at', 'updated_at'], 'integer'],
|
||||
[['name', 'value'], 'string', 'max' => 255],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'name' => 'Name',
|
||||
'type' => 'Type',
|
||||
'value' => 'Value',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user