更新项目部分结构,新增加DB

This commit is contained in:
2024-12-19 19:20:27 +08:00
parent 0fe2624e6b
commit 992c94250d
539 changed files with 1667 additions and 1906 deletions

View File

@@ -0,0 +1,47 @@
<?php
namespace common\modelsgii\oldDb;
/**
* This is the model class for table "yii_west_unit".
*
* @property int $id
* @property string $name
* @property int $created_at
* @property int $updated_at
*/
class WestUnit extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_west_unit';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['name'], 'required'],
[['created_at', 'updated_at'], 'integer'],
[['name'], 'string', 'max' => 20],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Name',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}