1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00
2020-06-20 20:19:53 +08:00

73 lines
911 B
PHP

<?php
namespace App\Models;
class ImFriend extends Model
{
/**
* 主键编号
*
* @var integer
*/
public $id;
/**
* 用户编号
*
* @var integer
*/
public $user_id;
/**
* 好友编号
*
* @var integer
*/
public $friend_id;
/**
* 分组编号
*
* @var integer
*/
public $group_id;
/**
* 屏蔽标识
*
* @var integer
*/
public $blocked;
/**
* 创建时间
*
* @var integer
*/
public $create_time;
/**
* 更新时间
*
* @var integer
*/
public $update_time;
public function getSource()
{
return 'kg_im_friend';
}
public function beforeCreate()
{
$this->create_time = time();
}
public function beforeUpdate()
{
$this->update_time = time();
}
}