created new migration for future projects

This commit is contained in:
2020-05-10 17:48:16 -05:00
parent 09f9e39e8b
commit 1d19732eeb
7 changed files with 43 additions and 4 deletions
@@ -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;
+4
View File
@@ -25,4 +25,8 @@ class Service extends Model
'name',
'state',
];
public function structure() {
return $this->hasOne('App\Models\Structure\Structure', 'structure_id', 'structure_id');
}
}
+4
View File
@@ -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');
}
}