Files
car_info/app/model/LogisticsShipHis.php
T
2025-06-09 11:37:32 +08:00

41 lines
728 B
PHP

<?php
namespace app\model;
use support\Model;
class LogisticsShipHis extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'logistics_ship_his';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
//批量赋值黑名单
protected $guarded = ['created_at', 'updated_at'];
/**
* Get the location that owns the vehicle.
*/
public function ship()
{
return $this->belongsTo(Vehicle::class, 'ship_id', 'id');
}
}