33 lines
584 B
PHP
33 lines
584 B
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (c) 2021 勾股工作室
|
|
* @license https://opensource.org/licenses/Apache-2.0
|
|
* @link https://www.gougucms.com
|
|
*/
|
|
namespace app\admin\model;
|
|
|
|
use think\facade\Db;
|
|
use think\model;
|
|
|
|
/**
|
|
*
|
|
* 用户关联居住信息表
|
|
*
|
|
*/
|
|
class InformationUserMsg extends Model
|
|
{
|
|
// 设置当前模型对应的完整数据表名称
|
|
protected $table = 'fa_szxc_information_usermsg';
|
|
|
|
/**
|
|
*
|
|
* 关联用户表
|
|
*
|
|
*/
|
|
public function user()
|
|
{
|
|
return $this->hasOne(ShopUser::class, 'uid', 'user_id');
|
|
}
|
|
|
|
|
|
} |