58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii\oldDb;
|
|
|
|
/**
|
|
* This is the model class for table "yii_express_companies".
|
|
*
|
|
* @property int $id
|
|
* @property string $name 公司名称
|
|
* @property string $code 公司编码
|
|
* @property string $type 公司类型
|
|
* @property int $sort 排序
|
|
* @property string|null $created_at
|
|
* @property string|null $updated_at
|
|
* @property string|null $deleted_at
|
|
*/
|
|
class ExpressCompanies extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_express_companies';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['name', 'code', 'type', 'sort'], 'required'],
|
|
[['sort'], 'integer'],
|
|
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
|
|
[['name'], 'string', 'max' => 100],
|
|
[['code', 'type'], 'string', 'max' => 30],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'name' => 'Name',
|
|
'code' => 'Code',
|
|
'type' => 'Type',
|
|
'sort' => 'Sort',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'deleted_at' => 'Deleted At',
|
|
];
|
|
}
|
|
}
|