Added motor_testing_master migration, model, resource with dependencies, importer, exporter
This commit is contained in:
57
app/Models/MotorTestingMaster.php
Normal file
57
app/Models/MotorTestingMaster.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class MotorTestingMaster extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
'plant_id',
|
||||
'item_id',
|
||||
'isi_model',
|
||||
'phase',
|
||||
'kw',
|
||||
'hp',
|
||||
'volt',
|
||||
'current',
|
||||
'rpm',
|
||||
'torque',
|
||||
'frequency',
|
||||
'connection',
|
||||
'ins_res_limit',
|
||||
'ins_res_type',
|
||||
'res_ry_ll',
|
||||
'res_ry_ul',
|
||||
'res_yb_ll',
|
||||
'res_yb_ul',
|
||||
'res_br_ll',
|
||||
'res_br_ul',
|
||||
'lock_volt_limit',
|
||||
'leak_cur_limit',
|
||||
'lock_cur_ll',
|
||||
'lock_cur_ul',
|
||||
'noload_cur_ll',
|
||||
'noload_cur_ul',
|
||||
'noload_pow_ll',
|
||||
'noload_pow_ul',
|
||||
'noload_spd_ll',
|
||||
'noload_spd_ul',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
];
|
||||
|
||||
public function plant(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
|
||||
public function item(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Item::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user