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

56 lines
1.3 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_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',
];
}
}