21 lines
449 B
PHP
21 lines
449 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class OrganizationUser extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $table = 'organization_user';
|
|
protected $connection = 'mysql';
|
|
protected $fillable = [
|
|
'organization_id',
|
|
];
|
|
|
|
public function organization(){
|
|
return $this->hasOne(Organization::class, 'id', 'organization_id');
|
|
}
|
|
}
|