add skill and position

This commit is contained in:
king199025
2018-10-12 14:52:08 +03:00
parent c9db4cd49b
commit 369cf94f23
52 changed files with 1129 additions and 62 deletions

View File

@ -0,0 +1,44 @@
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "position".
*
* @property int $id
* @property string $name
*/
class Position extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'position';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name'], 'required'],
[['name'], 'string', 'max' => 100],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Название',
];
}
}