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

69 lines
2.5 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_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',
];
}
}