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

48 lines
1.1 KiB
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
* 表情包数据表模型
*
2021-07-05 21:52:44 +08:00
* @property int $id 表情包详情ID
* @property int $emoticon_id 表情分组ID
2021-04-20 16:30:57 +08:00
* @property int $user_id 用户ID
* @property string $describe 表情描述
* @property string $url 表情链接
2020-11-14 18:10:28 +08:00
* @property string $file_suffix 文件前缀
2021-04-20 16:30:57 +08:00
* @property int $file_size 表情包文件大小
* @property string $created_at 创建时间
2021-07-05 21:52:44 +08:00
* @property string $updated_at 更新时间
2022-01-22 12:48:28 +08:00
*
2020-11-14 18:10:28 +08:00
* @package App\Model
2020-11-04 17:36:52 +08:00
*/
2021-07-05 21:52:44 +08:00
class EmoticonItem extends BaseModel
2020-11-04 17:36:52 +08:00
{
2021-07-05 21:52:44 +08:00
protected $table = 'emoticon_item';
2020-11-14 18:10:28 +08:00
2022-01-22 12:48:28 +08:00
public $timestamps = true;
2020-11-14 18:10:28 +08:00
protected $fillable = [
'emoticon_id',
'user_id',
'describe',
'url',
'file_suffix',
'file_size',
'created_at',
2021-07-05 21:52:44 +08:00
'updated_at',
2020-11-14 18:10:28 +08:00
];
protected $casts = [
'emoticon_id' => 'integer',
2021-04-20 16:30:57 +08:00
'user_id' => 'integer',
'file_size' => 'integer',
2021-07-05 21:52:44 +08:00
'created_at' => 'datetime',
'updated_at' => 'datetime',
2020-11-14 18:10:28 +08:00
];
2020-11-04 17:36:52 +08:00
}