26 lines
460 B
PHP
26 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use App\Traits\{NextKey,PushNew};
|
|
|
|
class PaymentItem extends Model
|
|
{
|
|
use NextKey,PushNew;
|
|
const RECORD_ID = 'payment_item';
|
|
public $incrementing = FALSE;
|
|
|
|
protected $dateFormat = 'U';
|
|
const CREATED_AT = 'date_orig';
|
|
const UPDATED_AT = 'date_last';
|
|
|
|
protected $table = 'ab_payment_item';
|
|
|
|
/* RELATIONS */
|
|
|
|
public function payment() {
|
|
return $this->belongsTo(Payment::class);
|
|
}
|
|
} |