braintree_api/app/Models/OrdersStatusHistory.php
2025-05-30 14:14:53 +02:00

22 lines
524 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class OrdersStatusHistory extends Model
{
//
protected $table = 'rcd_orders_status_history';
protected $primaryKey = 'orders_status_history_id';
public $timestamps = true;
const CREATED_AT = 'date_added';
const UPDATED_AT = null;
protected $guarded = [];
public function rcdOrder(): BelongsTo
{
return $this->belongsTo(Order::class, 'orders_id');
}
}