hyperf-chat/app/Model/Emoticon/Emoticon.php

38 lines
790 B
PHP
Raw Permalink Normal View History

2020-11-04 17:36:52 +08:00
<?php
declare (strict_types=1);
2022-01-20 21:20:58 +08:00
namespace App\Model\Emoticon;
use App\Model\BaseModel;
2020-11-04 17:36:52 +08:00
/**
2020-11-14 18:10:28 +08:00
* 表情包分组数据表模型
2020-11-13 23:09:56 +08:00
*
2021-07-05 21:52:44 +08:00
* @property integer $id 分组ID
* @property string $name 分组名称
* @property string $icon 分组图标
* @property integer $status 分组状态
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
2020-11-13 23:09:56 +08:00
* @package App\Model
2020-11-04 17:36:52 +08:00
*/
2020-11-05 17:40:51 +08:00
class Emoticon extends BaseModel
2020-11-04 17:36:52 +08:00
{
protected $table = 'emoticon';
2021-07-12 22:00:48 +08:00
protected $fillable = [
'name',
'icon',
'status',
'created_at',
'updated_at',
];
2020-11-04 17:36:52 +08:00
2020-11-13 23:09:56 +08:00
protected $casts = [
2021-07-05 21:52:44 +08:00
'status' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime',
2020-11-13 23:09:56 +08:00
];
2020-11-04 17:36:52 +08:00
}