46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class ApiUser
|
|
*
|
|
* @property int $id
|
|
* @property int|null $user_id
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property SfGuardUser|null $sf_guard_user
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereUpdatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereUserId($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class ApiUser extends Model
|
|
{
|
|
protected $table = 'api_user';
|
|
|
|
protected $casts = [
|
|
'user_id' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'user_id'
|
|
];
|
|
|
|
public function sf_guard_user()
|
|
{
|
|
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
|
}
|
|
}
|