databases and models
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Structures;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Assets extends Model
|
||||
{
|
||||
// Table Name
|
||||
protected $table = 'assets';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
// Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'is_blueprint_copy',
|
||||
'is_singleton',
|
||||
'item_id',
|
||||
'location_flag',
|
||||
'location_id',
|
||||
'location_type',
|
||||
'quantity',
|
||||
'type_id',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user