1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 19:44:02 +08:00
course-tencent-cloud/app/Models/ImGroupUser.php
2020-07-29 20:43:05 +08:00

67 lines
814 B
PHP

<?php
namespace App\Models;
class ImGroupUser extends Model
{
/**
* 主键编号
*
* @var int
*/
public $id;
/**
* 群组编号
*
* @var int
*/
public $group_id;
/**
* 用户编号
*
* @var int
*/
public $user_id;
/**
* 优先级
*
* @var int
*/
public $priority;
/**
* 创建时间
*
* @var int
*/
public $create_time;
/**
* 更新时间
*
* @var int
*/
public $update_time;
public function getSource(): string
{
return 'kg_im_group_user';
}
public function beforeCreate()
{
$this->create_time = time();
}
public function beforeUpdate()
{
$this->update_time = time();
}
}