added new models and migrations for automatic tracking of moon rental payments
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\MoonRent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MoonRentalInvoice extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'alliance_moon_rental_invoices';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* These are the items which are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'character_id',
|
||||
'character_name',
|
||||
'corporation_id',
|
||||
'corporation_name',
|
||||
'rental_moons',
|
||||
'invoice_amount',
|
||||
'due_date',
|
||||
'paid',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\MoonRent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MoonRentalPayment extends Model
|
||||
{
|
||||
//Table Name
|
||||
protected $table = 'alliance_moon_rental_payments';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* These are the items which are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'invoice_id',
|
||||
'payment_amount',
|
||||
'reference_id',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user