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

63 lines
1.3 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
* 用户群组[公告消息]数据表模型
*
* @property int $id 群公告ID
* @property int $group_id 群ID
* @property int $user_id 发布者ID
* @property string $title 公告标题
* @property string $content 公告内容
* @property int $is_delete 是否删除[0:;1:]
* @property string $created_at 发布时间
* @property string $updated_at 修改时间
* @property string $deleted_at 删除时间
*
* @package App\Model\Group
2020-11-04 17:36:52 +08:00
*/
2020-11-05 17:40:51 +08:00
class UsersGroupNotice extends BaseModel
2020-11-04 17:36:52 +08:00
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'users_group_notice';
/**
* 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',
'user_id',
'title',
'content',
'is_delete',
'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 = [
'id' => 'integer',
'group_id' => 'integer',
'user_id' => 'integer',
'is_delete' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime'
];
2020-11-04 17:36:52 +08:00
}