<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "brand_source".
 *
 * @property int $id
 * @property int|null $source
 * @property int|null $created_at
 * @property int|null $updated_at
 * @property int|null $is_deleted
 * @property int $brand_id
 * @property string|null $source_url
 */
class BrandSource extends \app\models\BaseModel
{


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

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

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

}
