<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "brand_alias".
 *
 * @property int $id
 * @property int|null $created_at
 * @property int|null $updated_at
 * @property string|null $name
 * @property int $brand_id
 * @property int|null $is_deleted
 */
class BrandAlias extends BaseModel
{


    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'brand_alias';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name'], 'default', 'value' => null],
            [['is_deleted'], 'default', 'value' => 0],
            [['created_at', 'updated_at', 'brand_id', 'is_deleted'], 'integer'],
            [['brand_id'], 'required'],
            [['name'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'name' => 'Name',
            'brand_id' => 'Brand ID',
            'is_deleted' => 'Is Deleted',
        ];
    }

}
