|
- <?php
-
- namespace common\models;
-
- use Yii;
-
- /**
- * This is the model class for table "base_button_permission".
- *
- * @property integer $ID
- * @property integer $user_id
- * @property integer $menu_id
- * @property string $button_permission
- */
- class BaseButtonPermission extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'base_button_permission';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['user_id', 'menu_id', 'button_permission'], 'required'],
- [['user_id', 'menu_id'], 'integer'],
- [['button_permission'], 'string', 'max' => 255],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'user_id' => '用户ID,关联base_user',
- 'menu_id' => '菜单ID',
- 'button_permission' => '按钮ID列表',
- ];
- }
- }
|