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

49 lines
952 B
PHP

<?php
namespace common\modelsgii\oldDb;
/**
* This is the model class for table "yii2_role_menu".
*
* @property int $id
* @property int|null $role_id
* @property string|null $menuUrl
* @property int|null $created_at
* @property int|null $updated_at
*/
class RoleMenu extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%role_menu}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['role_id', 'created_at', 'updated_at'], 'integer'],
[['menuUrl'], 'string', 'max' => 50],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'role_id' => 'Role ID',
'menuUrl' => 'Menu Url',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}