first commit
This commit is contained in:
20
app/Models/Module/Module.php
Normal file
20
app/Models/Module/Module.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Module;
|
||||
|
||||
use App\Models\Model;
|
||||
use Sofa\Eloquence\Eloquence;
|
||||
|
||||
class Module extends Model
|
||||
{
|
||||
use Eloquence;
|
||||
|
||||
protected $table = 'modules';
|
||||
|
||||
/**
|
||||
* Attributes that should be mass-assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['company_id', 'alias', 'status'];
|
||||
}
|
18
app/Models/Module/ModuleHistory.php
Normal file
18
app/Models/Module/ModuleHistory.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Module;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class ModuleHistory extends Model
|
||||
{
|
||||
|
||||
protected $table = 'module_histories';
|
||||
|
||||
/**
|
||||
* Attributes that should be mass-assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['company_id', 'module_id', 'category', 'version', 'description'];
|
||||
}
|
Reference in New Issue
Block a user