Files
xk-api-yii/common/modelsgii/oldDb/SystemConfig.php

52 lines
1.1 KiB
PHP

<?php
namespace common\modelsgii\oldDb;
/**
* 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',
];
}
}