| Current Path : /var/www/html/dvs/common/models/ |
| Current File : /var/www/html/dvs/common/models/RolesAssigned.php |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "roles_assigned".
*
* @property string $user_id
* @property string $role_id
*/
class RolesAssigned extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'dmg_staff_access';
}
public function rules()
{
return [
[['staff_info_id'], 'integer'],
[['role_code'], 'string', 'max' => 25],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'user_id' => Yii::t('app', 'User ID'),
'role_id' => Yii::t('app', 'Role ID'),
];
}
}