added new models and migrations for automatic tracking of moon rental payments

This commit is contained in:
2020-05-09 12:26:40 -05:00
parent 9c7dbbf1ba
commit 1f3954cfe0
7 changed files with 170 additions and 30 deletions
@@ -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',
];
}