2018-05-20 12:53:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2020-07-27 04:49:59 +00:00
|
|
|
use App\Traits\NextKey;
|
|
|
|
use App\Traits\PushNew;
|
|
|
|
|
2018-05-20 12:53:14 +00:00
|
|
|
class PaymentItem extends Model
|
|
|
|
{
|
2020-07-27 04:49:59 +00:00
|
|
|
use NextKey,PushNew;
|
|
|
|
const RECORD_ID = 'payment_item';
|
|
|
|
public $incrementing = FALSE;
|
|
|
|
|
|
|
|
const CREATED_AT = 'date_orig';
|
|
|
|
const UPDATED_AT = 'date_last';
|
|
|
|
|
2018-05-20 12:53:14 +00:00
|
|
|
protected $table = 'ab_payment_item';
|
2020-07-27 04:49:59 +00:00
|
|
|
|
|
|
|
public function payment() {
|
|
|
|
return $this->belongsTo(Payment::class);
|
|
|
|
}
|
2018-05-20 12:53:14 +00:00
|
|
|
}
|