created new migration for future projects
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
/**
|
||||
* W4RP Services
|
||||
* GNU Public License
|
||||
*
|
||||
* Finally works in it's current state. Need to move to a job process.
|
||||
*/
|
||||
|
||||
namespace App\Library\Structures;
|
||||
|
||||
@@ -25,4 +25,8 @@ class Service extends Model
|
||||
'name',
|
||||
'state',
|
||||
];
|
||||
|
||||
public function structure() {
|
||||
return $this->hasOne('App\Models\Structure\Structure', 'structure_id', 'structure_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,8 @@ class Structure extends Model
|
||||
'reinforce_weekday',
|
||||
'unanchors_at',
|
||||
];
|
||||
|
||||
public function services() {
|
||||
return $this->hasMany('App\Models\Structure\Service', 'structure_id', 'structure_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user