69 lines
2.5 KiB
PHP
69 lines
2.5 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_device_unique_bind_user".
|
||
*
|
||
* @property int $id
|
||
* @property int $unique_id 设备绑定店铺id
|
||
* @property int $uid 用户id
|
||
* @property int $c_id 教练id
|
||
* @property int $created_at 创建时间
|
||
* @property int $start_at 开始时间,用户加入的时间
|
||
* @property int $end_at 结束时间,设备保存数据时的时间
|
||
* @property int $status 状态,1.进行中,2.绑定中,3.正常结束 - 数据传回来表示结束,4.手动结束,用户在绑定中的时候扫其他设备,5.手动结束,用户在绑定中的时候,设备点击结束
|
||
* @property int $is_delete 是否删除,1.删除,0.没有删除
|
||
* @property int $deleted_at 删除时间
|
||
* @property int $is_show 是否查看过,1.查看过,其他,没有
|
||
* @property string $ball_arm_ids 存储球杆id,使用英文逗号隔开
|
||
* @property string $order_id 订单id
|
||
*
|
||
*/
|
||
class DeviceUniqueBindUser extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_device_unique_bind_user';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['unique_id', 'uid', 'c_id', 'created_at', 'start_at', 'end_at', 'status', 'is_delete', 'deleted_at'], 'required'],
|
||
[['unique_id', 'uid', 'c_id', 'created_at', 'start_at', 'end_at', 'status', 'is_delete', 'deleted_at','is_show','order_id'], 'integer'],
|
||
[['ball_arm_ids'], 'string'],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'unique_id' => '设备绑定店铺id',
|
||
'uid' => '用户id',
|
||
'c_id' => '教练id',
|
||
'created_at' => '创建时间',
|
||
'start_at' => '开始时间,用户加入的时间',
|
||
'end_at' => '结束时间,设备保存数据时的时间',
|
||
'status' => '状态,1.进行中,2.绑定中,3.正常结束 - 数据传回来表示结束,4.手动结束,用户在绑定中的时候扫其他设备,5.手动结束,用户在绑定中的时候,设备点击结束',
|
||
'is_delete' => '是否删除,1.删除,0.没有删除',
|
||
'deleted_at' => '删除时间',
|
||
'is_show' => '是否查看,1.查看,0,没有查看',
|
||
'ball_arm_ids' => '存储球杆id',
|
||
];
|
||
}
|
||
|
||
}
|