moon avg update

This commit is contained in:
2020-02-04 23:00:03 -06:00
parent cd53f8515a
commit f199d633b1
10 changed files with 170 additions and 96 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Models\Moon;
use Illuminate\Database\Eloquent\Model;
class AvgMineralPrices extends Model
{
//Table Name
protected $table = 'avg_mineral_prices';
//Primary Key
public $primaryKey = 'id';
//Timestamps
public $timestamps = true;
/**
* Fillable array
*
* @var array
*/
protected $fillable = [
'Name',
'ItemId',
'Price',
'Time',
];
}
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Models\Moon;
use Illuminate\Database\Eloquent\Model;
class AvgOrePrices extends Model
{
//Table Name
protected $table = 'avg_ore_prices';
//Primary Key
public $primaryKey = 'id';
//Timestamps
public $timestamps = true;
/**
* Fillable array
*
* @var array
*/
protected $fillable = [
'Name',
'ItemId',
'BatchPrice',
'UnitPrice',
'm3Price',
'Time',
];
}
+14 -2
View File
@@ -1,6 +1,6 @@
<?php
namespace App\Models;
namespace App\Models\Moon;
use Illuminate\Database\Eloquent\Model;
@@ -10,5 +10,17 @@ class Config extends Model
protected $table = 'Config';
// Timestamps
public $timestamps = 'false';
public $timestamps = false;
/**
* Fillable Array
*
* @var array
*/
protected $fillable = [
'RentalTax',
'AllyRentalTax',
'RefineRate',
'RentalTime',
];
}
+1 -1
View File
@@ -10,5 +10,5 @@ class ItemComposition extends Model
protected $table = 'ItemComposition';
// Timestamps
public $timestamps = 'false';
public $timestamps = false;
}
@@ -14,4 +14,16 @@ class Price extends Model
// Timestamps
public $timestamps = false;
/**
* Fillable Array
*
* @var array
*/
protected $fillable = [
'Name',
'ItemId',
'Price',
'Time',
];
}
+15 -1
View File
@@ -13,5 +13,19 @@ class OrePrice extends Model
public $primaryKey = 'id';
// Timestamps
public $timestamps = 'false';
public $timestamps = false;
/**
* Fillable Array
*
* @var array
*/
protected $fillable = [
'Name',
'ItemId',
'BatchPrice',
'UnitPrice',
'm3Price',
'Time',
];
}