hyperf-chat/app/Model/UsersFriendsApply.php

57 lines
1.2 KiB
PHP
Raw Normal View History

2020-11-04 17:36:52 +08:00
<?php
declare (strict_types=1);
2020-11-09 17:41:22 +08:00
2020-11-04 17:36:52 +08:00
namespace App\Model;
/**
2020-11-14 18:10:28 +08:00
* 好友添加申请数据表模型
*
2021-04-20 16:30:57 +08:00
* @property int $id 申请ID
* @property int $user_id 用户ID
* @property int $friend_id 朋友ID
* @property int $status 申请状态
* @property string $remarks 备注说明
2020-11-14 18:10:28 +08:00
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
*
* @package App\Model
2020-11-04 17:36:52 +08:00
*/
2020-11-05 17:40:51 +08:00
class UsersFriendsApply extends BaseModel
2020-11-04 17:36:52 +08:00
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'users_friends_apply';
/**
* The attributes that are mass assignable.
*
* @var array
*/
2020-11-09 17:41:22 +08:00
protected $fillable = [
'user_id',
'friend_id',
'status',
'remarks',
'created_at',
'updated_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 = [
2021-04-20 16:30:57 +08:00
'id' => 'integer',
'user_id' => 'integer',
'friend_id' => 'integer',
'status' => 'integer',
2020-11-14 18:10:28 +08:00
'created_at' => 'datetime',
'updated_at' => 'datetime'
];
2020-11-04 17:36:52 +08:00
}