57 lines
1.1 KiB
PHP
57 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
|
|
namespace App\Model;
|
|
|
|
/**
|
|
* 好友添加申请数据表模型
|
|
*
|
|
* @property int $id 申请ID
|
|
* @property int $user_id 用户ID
|
|
* @property int $friend_id 朋友ID
|
|
* @property int $status 申请状态
|
|
* @property string $remarks 备注说明
|
|
* @property string $created_at 创建时间
|
|
* @property string $updated_at 更新时间
|
|
*
|
|
* @package App\Model
|
|
*/
|
|
class UsersFriendsApply extends BaseModel
|
|
{
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'users_friends_apply';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'user_id',
|
|
'friend_id',
|
|
'status',
|
|
'remarks',
|
|
'created_at',
|
|
'updated_at'
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'id' => 'integer',
|
|
'user_id' => 'integer',
|
|
'friend_id' => 'integer',
|
|
'status' => 'integer',
|
|
'created_at' => 'datetime',
|
|
'updated_at' => 'datetime'
|
|
];
|
|
}
|