37 lines
707 B
PHP
37 lines
707 B
PHP
<?php
|
|
|
|
namespace App\Models\MiningTax;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Payment extends Model
|
|
{
|
|
//Table Name
|
|
protected $table = 'alliance_mining_tax_payments';
|
|
|
|
//Primary Key
|
|
public $primaryKey = 'id';
|
|
|
|
//Timestamps
|
|
public $timestamps = true;
|
|
|
|
/**
|
|
* Items which are mass assignable
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'character_id',
|
|
'character_name',
|
|
'invoice_id',
|
|
'invoice_amount',
|
|
'payment_amount',
|
|
'payment_date',
|
|
'status',
|
|
];
|
|
|
|
public function getInvoice() {
|
|
return $this->belongsTo(App\Models\MiningTax\Invoice::class, 'invoice_id', 'invoice_id');
|
|
}
|
|
}
|