add resume tariff column to user_card table

This commit is contained in:
iIronside
2022-11-17 12:40:22 +03:00
parent 0f8aa34b4f
commit 816b39fc74
6 changed files with 53 additions and 3 deletions

View File

@ -40,6 +40,7 @@ use yii\helpers\ArrayHelper;
* @property string $test_task_complete_date
* @property string $resume_text
* @property int $resume_template_id
* @property int $resume_tariff
*
* @property FieldsValue[] $fieldsValues
* @property ProjectUser[] $projectUsers
@ -112,7 +113,7 @@ class UserCard extends \yii\db\ActiveRecord
{
return [
[['fio', 'status', 'gender', 'email', 'level', 'position_id'], 'required'],
[['gender', 'status', 'position_id', 'id_user', 'level', 'years_of_exp'], 'integer'],
[['gender', 'status', 'position_id', 'id_user', 'level', 'years_of_exp', 'resume_tariff'], 'integer'],
[['dob', 'created_at', 'updated_at', 'deleted_at', 'vc_text', 'vc_text_short', 'test_task_getting_date', 'test_task_complete_date'], 'safe'],
['email', 'unique', 'message'=>'Почтовый адрес уже используется'],
[['fio', 'passport', 'photo', 'email', 'resume', 'city', 'link_vk', 'link_telegram', 'specification'], 'string', 'max' => 255],
@ -158,7 +159,8 @@ class UserCard extends \yii\db\ActiveRecord
'test_task_getting_date' => 'Дата получения тестового',
'test_task_complete_date' => 'Дата выполнения тестового',
'resume_template_id' => 'Шаблон резюме',
'resume_text' => 'Резюме сгенерированный текст'
'resume_text' => 'Резюме сгенерированный текст',
'resume_tariff' => 'Ставка для резюме'
];
}