hyperf-chat/app/Model/Group/GroupNotice.php

70 lines
1.7 KiB
PHP
Raw Normal View History

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
/**
* 聊天群组[公告消息]数据表模型
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
*/
class GroupNotice extends BaseModel
2020-11-04 17:36:52 +08:00
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'group_notice';
2020-11-04 17:36:52 +08:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
2020-11-13 23:09:56 +08:00
protected $fillable = [
2020-11-14 17:37:55 +08:00
'group_id',
'creator_id',
2020-11-14 17:37:55 +08:00
'title',
'content',
'is_top',
2020-11-14 17:37:55 +08:00
'is_delete',
'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
/**
* The attributes that should be cast to native types.
*
* @var array
*/
2020-11-13 23:09:56 +08:00
protected $casts = [
2021-03-26 22:03:11 +08:00
'group_id' => 'integer',
'creator_id' => 'integer',
2021-03-26 22:03:11 +08:00
'is_top' => 'integer',
'is_delete' => 'integer',
'is_confirm' => 'integer',
2020-11-13 23:09:56 +08:00
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
2020-11-13 23:09:56 +08:00
];
2020-11-04 17:36:52 +08:00
}