55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii\oldDb;
|
|
|
|
/**
|
|
* This is the model class for table "yii_store_user".
|
|
*
|
|
* @property int $id
|
|
* @property int $store_id 关联门店
|
|
* @property int $user_id 关联用户
|
|
* @property int $is_online 当前在线
|
|
* @property int $last_login_time 最近登录时间
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
* @property int $is_delete
|
|
*/
|
|
class StoreUser extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_store_user';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['store_id', 'user_id'], 'required'],
|
|
[['store_id', 'user_id', 'is_online','last_login_time','created_at', 'updated_at', 'is_delete'], 'integer'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'store_id' => 'Store ID',
|
|
'user_id' => 'User ID',
|
|
'is_online' => '当前在线',
|
|
'last_login_time' => '最近登录时间',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'is_delete' => 'Is Delete',
|
|
];
|
|
}
|
|
}
|