mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-05 14:24:34 +00:00
43 lines
979 B
PHP
43 lines
979 B
PHP
<?php
|
|
|
|
namespace App\Models\auth;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @OA\Tag(
|
|
* name="Auth",
|
|
* description="Operations related to Auth database"
|
|
* )
|
|
*/
|
|
/**
|
|
* @OA\Schema(
|
|
* schema="AccountAccess",
|
|
* title="AccountAccess",
|
|
* description="AccountAccess model",
|
|
* @OA\Property(property="id", type="integer", format="int32"),
|
|
* @OA\Property(property="gmlevel", type="integer", format="int32"),
|
|
* @OA\Property(property="RealmID", type="integer", format="int32"),
|
|
* @OA\Property(property="name", type="string")
|
|
* )
|
|
*/
|
|
class AccountAccess extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $connection = 'mysql2';
|
|
protected $table = 'account_access';
|
|
protected $primaryKey = 'id';
|
|
|
|
protected $fillable = [
|
|
'gmlevel',
|
|
'RealmID'
|
|
];
|
|
|
|
public function account()
|
|
{
|
|
return $this->belongsTo(Account::class, 'id', 'id');
|
|
}
|
|
}
|