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

56
models/Brand.php Normal file
View File

@ -0,0 +1,56 @@
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "brand".
*
* @property int $id
* @property int|null $created_at
* @property int|null $updated_at
* @property string|null $name
* @property string|null $show_name
* @property int|null $is_deleted
*/
class Brand extends BaseModel
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'brand';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name', 'show_name'], 'default', 'value' => null],
[['is_deleted'], 'default', 'value' => 0],
[['created_at', 'updated_at', 'is_deleted'], 'integer'],
[['name', 'show_name'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'name' => 'Name',
'show_name' => 'Show Name',
'is_deleted' => 'Is Deleted',
];
}
}