| Current Path : /var/www/html/chatbot/backend/models/ |
| Current File : /var/www/html/chatbot/backend/models/StaffAccess.php |
<?php
namespace backend\models;
/**
* This is the model class for table "ost_staff_access".
*
* @property integer $id
* @property string $role_code
* @property integer $staff_info_id
*/
class StaffAccess extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName() {
return 'dmg_staff_access';
}
/**
* @inheritdoc
*/
public function rules() {
return [
[['staff_info_id'], 'integer'],
[['role_code'], 'string', 'max' => 25],
];
}
/**
* @inheritdoc
*/
public function attributeLabels() {
return [
'id' => 'ID',
'role_code' => yii::t('app', 'Role'),
'staff_info_id' => yii::t('app', 'Staff Info ID'),
];
}
}