62 lines
1.3 KiB
PHP
62 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "brand_runway_images".
|
|
*
|
|
* @property int $id
|
|
* @property int|null $created_at
|
|
* @property int|null $updated_at
|
|
* @property int|null $is_deleted
|
|
* @property string|null $image
|
|
* @property int $runway_id
|
|
* @property int $brand_id
|
|
* @property string|null $name
|
|
*/
|
|
class BrandRunwayImages extends \app\models\BaseModel
|
|
{
|
|
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'brand_runway_images';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['brand_id'], 'default', 'value' => 0],
|
|
[['name'], 'default', 'value' => ''],
|
|
[['created_at', 'updated_at', 'is_deleted', 'runway_id', 'brand_id'], 'integer'],
|
|
[['image', 'name'], 'string', 'max' => 255],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'is_deleted' => 'Is Deleted',
|
|
'image' => 'Image',
|
|
'runway_id' => 'Runway ID',
|
|
'brand_id' => 'Brand ID',
|
|
'name' => 'Name',
|
|
];
|
|
}
|
|
|
|
}
|