krgm.so-manager-dev.com/app/Models/Ptype.php

36 lines
678 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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');
}
}