Your IP : 216.73.216.79


Current Path : /var/www/html/ssr26/common/models/
Upload File :
Current File : /var/www/html/ssr26/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'),
        ];
    }
}