36 lines
678 B
PHP
36 lines
678 B
PHP
<?php
|
||
|
||
namespace App\Models;
|
||
|
||
use Illuminate\Database\Eloquent\Model;
|
||
|
||
/**
|
||
* 車種分類モデル - ptypeテーブル(正式モデル)
|
||
* 旧UsingStatusPtypeの責務を置き換え
|
||
*/
|
||
class Ptype extends Model
|
||
{
|
||
protected $table = 'ptype';
|
||
protected $primaryKey = 'ptype_id';
|
||
public $timestamps = true;
|
||
|
||
public const CREATED_AT = 'created_at';
|
||
public const UPDATED_AT = 'updated_at';
|
||
|
||
protected $fillable = [
|
||
'ptype_subject',
|
||
'ptype_remarks',
|
||
'operator_id',
|
||
];
|
||
|
||
/**
|
||
* 料金設定
|
||
*/
|
||
public function prices()
|
||
{
|
||
return $this->hasMany(PriceA::class, 'price_ptypeid', 'ptype_id');
|
||
}
|
||
}
|
||
|
||
|