64 lines
1.6 KiB
PHP
64 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_express_nos".
|
|
*
|
|
* @property int $id
|
|
* @property string|null $express_company_name 公司名称
|
|
* @property string $express_company_code 公司编码
|
|
* @property string $express_no 快递单号
|
|
* @property string|null $mobile 手机号码
|
|
* @property int|null $state 物流状态
|
|
* @property string|null $sync_at 同步时间
|
|
* @property string|null $created_at
|
|
* @property string|null $updated_at
|
|
*/
|
|
class ExpressNos extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_express_nos';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['express_company_code', 'express_no'], 'required'],
|
|
[['state'], 'integer'],
|
|
[['sync_at', 'created_at', 'updated_at'], 'safe'],
|
|
[['express_company_name'], 'string', 'max' => 100],
|
|
[['express_company_code'], 'string', 'max' => 30],
|
|
[['express_no'], 'string', 'max' => 50],
|
|
[['mobile'], 'string', 'max' => 20],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'express_company_name' => 'Express Company Name',
|
|
'express_company_code' => 'Express Company Code',
|
|
'express_no' => 'Express No',
|
|
'mobile' => 'Mobile',
|
|
'state' => 'State',
|
|
'sync_at' => 'Sync At',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|