cxgj/models/DevList.php
2023-11-27 09:45:13 +08:00

80 lines
2.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "cx_dev_list".
*
* @property int $id
* @property string|null $dev_name 设备名称
* @property string|null $dev_id 设备id
* @property string|null $dev_code 设备code
* @property string|null $sc_code 生产code
* @property int|null $sell_status 设备售货状态 0=停止售货 1=正常售货 2=待投放
* @property int|null $enable_sell 是否开启售卖,2.停止售卖,1.正常售卖
* @property int|null $online_status 设备在线状态 0=离线 1=在线
* @property string|null $province 省
* @property string|null $city 市
* @property string|null $district 区
* @property string|null $address 地址
* @property string|null $service_phone 客服电话
* @property int|null $store_id 门店id默认为0
* @property int|null $created_at
* @property int|null $updated_at
* @property int|null $is_delete
* @property int|null $deleted_at
*/
class DevList extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'cx_dev_list';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['sell_status', 'enable_sell', 'online_status', 'store_id', 'created_at', 'updated_at', 'is_delete', 'deleted_at'], 'integer'],
[['dev_name', 'dev_code', 'sc_code', 'province', 'city', 'district', 'service_phone'], 'string', 'max' => 255],
[['dev_id'], 'string', 'max' => 30],
[['address'], 'string', 'max' => 300],
[['dev_id'], 'unique'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'dev_name' => 'Dev Name',
'dev_id' => 'Dev ID',
'dev_code' => 'Dev Code',
'sc_code' => 'Sc Code',
'sell_status' => 'Sell Status',
'enable_sell' => 'Enable Sell',
'online_status' => 'Online Status',
'province' => 'Province',
'city' => 'City',
'district' => 'District',
'address' => 'Address',
'service_phone' => 'Service Phone',
'store_id' => 'Store ID',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'is_delete' => 'Is Delete',
'deleted_at' => 'Deleted At',
];
}
}