2020-11-04 17:36:52 +08:00
|
|
|
<?php
|
|
|
|
declare (strict_types=1);
|
|
|
|
|
2020-11-05 17:40:51 +08:00
|
|
|
namespace App\Model\Group;
|
|
|
|
|
|
|
|
use App\Model\BaseModel;
|
2020-11-04 17:36:52 +08:00
|
|
|
|
|
|
|
/**
|
2021-03-25 17:32:36 +08:00
|
|
|
* 聊天群组[公告消息]数据表模型
|
2020-11-13 23:09:56 +08:00
|
|
|
*
|
2021-04-20 16:30:57 +08:00
|
|
|
* @property integer $id 群公告ID
|
|
|
|
* @property integer $group_id 群组ID
|
|
|
|
* @property integer $creator_id 创建者用户ID
|
|
|
|
* @property string $title 公告标题
|
|
|
|
* @property string $content 公告内容
|
|
|
|
* @property integer $is_top 是否置顶[0:否;1:是;]
|
|
|
|
* @property integer $is_delete 是否删除[0:否;1:是;]
|
|
|
|
* @property integer $is_confirm 是否需群成员确认公告[0:否;1:是;]
|
|
|
|
* @property array $confirm_users 已确认成员
|
|
|
|
* @property string $created_at 创建时间
|
|
|
|
* @property string $updated_at 更新时间
|
|
|
|
* @property string $deleted_at 删除时间
|
2020-11-13 23:09:56 +08:00
|
|
|
* @package App\Model\Group
|
2020-11-04 17:36:52 +08:00
|
|
|
*/
|
2021-03-25 17:32:36 +08:00
|
|
|
class GroupNotice extends BaseModel
|
2020-11-04 17:36:52 +08:00
|
|
|
{
|
2021-03-25 17:32:36 +08:00
|
|
|
protected $table = 'group_notice';
|
2020-11-04 17:36:52 +08:00
|
|
|
|
2020-11-13 23:09:56 +08:00
|
|
|
protected $fillable = [
|
2020-11-14 17:37:55 +08:00
|
|
|
'group_id',
|
2021-03-25 17:32:36 +08:00
|
|
|
'creator_id',
|
2020-11-14 17:37:55 +08:00
|
|
|
'title',
|
|
|
|
'content',
|
2021-03-25 17:32:36 +08:00
|
|
|
'is_top',
|
2020-11-14 17:37:55 +08:00
|
|
|
'is_delete',
|
2021-03-25 17:32:36 +08:00
|
|
|
'is_confirm',
|
|
|
|
'confirm_users',
|
2020-11-14 17:37:55 +08:00
|
|
|
'created_at',
|
|
|
|
'updated_at',
|
|
|
|
'deleted_at'
|
2020-11-13 23:09:56 +08:00
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
|
2020-11-13 23:09:56 +08:00
|
|
|
protected $casts = [
|
2021-03-26 22:03:11 +08:00
|
|
|
'group_id' => 'integer',
|
2021-03-25 17:32:36 +08:00
|
|
|
'creator_id' => 'integer',
|
2021-03-26 22:03:11 +08:00
|
|
|
'is_top' => 'integer',
|
|
|
|
'is_delete' => 'integer',
|
2021-03-25 17:32:36 +08:00
|
|
|
'is_confirm' => 'integer',
|
2020-11-13 23:09:56 +08:00
|
|
|
'created_at' => 'datetime',
|
2021-03-25 17:32:36 +08:00
|
|
|
'updated_at' => 'datetime',
|
|
|
|
'deleted_at' => 'datetime',
|
2020-11-13 23:09:56 +08:00
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
}
|