Skip to content

Database Structure (Relationships)

Zane Hooper edited this page Mar 16, 2017 · 3 revisions

Server (App\Server\Server)

Relationship Type Class
serverPorts hasMany App\Server\Port\Port
accesses hasMany App\Client\Server\Models\ClientServer

Server Port (App\Server\Port\Port)

Relationship Type Class
entities hasMany App\Entity\Entity
hubPort belongsTo App\Hub\Port\Port
server belongsTo App\Server\Server
group belongsTo App\Group\Group

IP Entity (App\Entity\Entity)

Relationship Type Class
owner morphTo currently, only App\Server\Port\Port
group belongsTo App\Group\Group

IP Group (App\Group\Group)

Relationship Type Class
entities hasMany App\Entity\Entity