56 lines
1.3 KiB
PHP
56 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_device_unique_bind_store".
|
||
*
|
||
* @property int $id
|
||
* @property string $unique 设备唯一id
|
||
* @property int $store_id 店铺id
|
||
* @property int $uid 绑定用户id
|
||
* @property int $created_at 创建时间
|
||
* @property int $is_delete 是否删除,1,删除,0,没有删除
|
||
* @property int $deleted_at 删除时间
|
||
*/
|
||
class DeviceUniqueBindStore extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_device_unique_bind_store';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['unique', 'store_id', 'uid', 'created_at', 'is_delete', 'deleted_at'], 'required'],
|
||
[['store_id', 'uid', 'created_at', 'is_delete', 'deleted_at'], 'integer'],
|
||
[['unique'], 'string', 'max' => 32],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'unique' => 'Unique',
|
||
'store_id' => 'Store ID',
|
||
'uid' => 'Uid',
|
||
'created_at' => 'Created At',
|
||
'is_delete' => 'Is Delete',
|
||
'deleted_at' => 'Deleted At',
|
||
];
|
||
}
|
||
}
|