32 lines
618 B
PHP
32 lines
618 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class FreeCompanyLink extends Model
|
|
{
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'freeCompanyId',
|
|
'discordGuildId',
|
|
'domainName'
|
|
];
|
|
|
|
public function freeCompanyMembers()
|
|
{
|
|
return $this->hasMany(FreeCompanyMember::class, 'freeCompanyLinkId');
|
|
}
|
|
|
|
public function freeCompanyRanks()
|
|
{
|
|
return $this->hasMany(FreeCompanyRank::class, 'freeCompanyLinkId');
|
|
}
|
|
|
|
public function userLinks()
|
|
{
|
|
return $this->hasMany(UserLink::class, 'freeCompanyLinkId');
|
|
}
|
|
}
|