<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "brand_runway".
 *
 * @property int $id
 * @property string|null $title
 * @property string|null $description
 * @property int|null $created_at
 * @property int|null $updated_at
 * @property int|null $is_deleted
 * @property int|null $image_count
 * @property int $brand_id
 * @property int|null $year
 * @property string|null $cover
 * @property string|null $source_url
 */
class BrandRunway extends \app\models\BaseModel
{


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

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['source_url'], 'default', 'value' => ''],
            [['year'], 'default', 'value' => 0],
            [['created_at', 'updated_at', 'is_deleted', 'image_count', 'brand_id', 'year'], 'integer'],
            [['title', 'cover', 'source_url'], 'string', 'max' => 255],
            [['description'], 'string', 'max' => 1024],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'description' => 'Description',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'is_deleted' => 'Is Deleted',
            'image_count' => 'Image Count',
            'brand_id' => 'Brand ID',
            'year' => 'Year',
            'cover' => 'Cover',
            'source_url' => 'Source Url',
        ];
    }

}
