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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property int $id
|
|
|
|
* @property int $user_id
|
|
|
|
* @property int $friend_id
|
|
|
|
* @property int $status
|
|
|
|
* @property string $remarks
|
|
|
|
* @property \Carbon\Carbon $created_at
|
|
|
|
* @property \Carbon\Carbon $updated_at
|
|
|
|
*/
|
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
|
|
|
|
*/
|
|
|
|
protected $casts = ['id' => 'integer', 'user_id' => 'integer', 'friend_id' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
|
|
|
|
}
|