65 lines
2.1 KiB
PHP
65 lines
2.1 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_user_ball_arm".
|
||
*
|
||
* @property int $id
|
||
* @property string $title 球杆名称
|
||
* @property int $uid 用户id
|
||
* @property int $store_id 门店id
|
||
* @property string $data 球杆数据,json串
|
||
* @property int $status 状态,1.未支付,需要支付,2.支付完订单,等待检测员检测,3.完成检测,可用球杆,4.完成检测,停用球杆
|
||
* @property int $created_at 创建时间
|
||
* @property int $updated_at 更新时间
|
||
* @property int $is_delete 是否删除,1.删除,0.没有删除
|
||
* @property int $deleted_at 删除时间
|
||
* @property int $jc_uid 检测员用户id,user表idorder_id
|
||
* @property int $order_id 订单id
|
||
*/
|
||
class UserBallArm extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_user_ball_arm';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['title', 'uid', 'store_id', 'data', 'status', 'created_at', 'updated_at', 'is_delete', 'deleted_at', 'jc_uid'], 'required'],
|
||
[['uid', 'store_id', 'status', 'created_at', 'updated_at', 'is_delete', 'deleted_at', 'jc_uid', 'order_id'], 'integer'],
|
||
[['data'], 'string'],
|
||
[['title'], 'string', 'max' => 255],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'title' => '球杆名称',
|
||
'uid' => '用户id',
|
||
'store_id' => '门店id',
|
||
'data' => '球杆数据,json串',
|
||
'status' => '状态,1.未支付,需要支付,2.支付完订单,等待检测员检测,3.完成检测,可用球杆,4.完成检测,停用球杆',
|
||
'created_at' => '创建时间',
|
||
'updated_at' => '更新时间',
|
||
'is_delete' => '是否删除,1.删除,0.没有删除',
|
||
'deleted_at' => '删除时间',
|
||
];
|
||
}
|
||
}
|