rewrite of the rental moon module

This commit is contained in:
2020-05-28 04:39:07 -05:00
parent 8a21604adb
commit ef86ba749d
16 changed files with 856 additions and 373 deletions
@@ -0,0 +1,51 @@
<?php
namespace App\Models\MoonRentals;
use Illuminate\Database\Eloquent\Model;
class AllianceRentalMoon extends Model
{
//Table Name
protected $table = 'alliance_moon_rentals';
//Primary Key
public $primaryKey = 'id';
//Timestamps
public $timestamps = false;
/**
* Items which are mass assignable by the model
*
* @var array
*/
protected $fillable = [
'region',
'system',
'planet',
'moon',
'structure_id',
'structure_name',
'first_ore',
'first_quantity',
'second_ore',
'second_quantity',
'third_ore',
'third_quantity',
'fourth_ore',
'fourth_quantity',
'moon_worth',
'alliance_rental_price',
'out_of_alliance_rental_price',
'rental_type',
'rental_until',
'rental_contact_id',
'rental_contact_type',
'paid',
'paid_until',
'alliance_use_until',
];
}