first commit

This commit is contained in:
2026-01-25 18:18:09 +08:00
commit 509312e604
8136 changed files with 2349298 additions and 0 deletions

60
models/BrandSource.php Normal file
View File

@ -0,0 +1,60 @@
<?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',
];
}
}