first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
46
dev/Models/ApiUser.php
Normal file
46
dev/Models/ApiUser.php
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue