Vest.php 743 Bytes
<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%vest}}".
 *
 * @property integer $id
 * @property string $name
 * @property string $avatar
 */
class Vest extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%vest}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name'], 'string', 'max' => 50],
            [['avatar'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'avatar' => 'Avatar',
        ];
    }
}