2020-11-04 17:36:52 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
|
|
|
|
|
|
|
namespace App\Model;
|
|
|
|
|
|
|
|
/**
|
2020-11-14 18:10:28 +08:00
|
|
|
* 表情包数据表模型
|
|
|
|
*
|
|
|
|
* @property int $id 表情包ID
|
|
|
|
* @property int $emoticon_id 分组ID
|
|
|
|
* @property int $user_id 用户ID
|
|
|
|
* @property string $describe 表情描述
|
|
|
|
* @property string $url 表情链接
|
|
|
|
* @property string $file_suffix 文件前缀
|
|
|
|
* @property int $file_size 表情包文件大小
|
|
|
|
* @property string $created_at 创建时间
|
|
|
|
*
|
|
|
|
* @package App\Model
|
2020-11-04 17:36:52 +08:00
|
|
|
*/
|
2020-11-05 17:40:51 +08:00
|
|
|
class EmoticonDetail extends BaseModel
|
2020-11-04 17:36:52 +08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The table associated with the model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $table = 'emoticon_details';
|
2020-11-14 18:10:28 +08:00
|
|
|
|
2020-11-04 17:36:52 +08:00
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2020-11-14 18:10:28 +08:00
|
|
|
protected $fillable = [
|
|
|
|
'emoticon_id',
|
|
|
|
'user_id',
|
|
|
|
'describe',
|
|
|
|
'url',
|
|
|
|
'file_suffix',
|
|
|
|
'file_size',
|
|
|
|
'created_at',
|
|
|
|
];
|
|
|
|
|
2020-11-04 17:36:52 +08:00
|
|
|
/**
|
|
|
|
* The attributes that should be cast to native types.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2020-11-14 18:10:28 +08:00
|
|
|
protected $casts = [
|
|
|
|
'id' => 'integer',
|
|
|
|
'emoticon_id' => 'integer',
|
|
|
|
'user_id' => 'integer',
|
|
|
|
'file_size' => 'integer',
|
|
|
|
'created_at' => 'datetime'
|
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
}
|