Rework Site and top level tables

This commit is contained in:
Deon George
2021-12-17 14:59:55 +11:00
parent b4e569ccc8
commit 99a62828f5
8 changed files with 192 additions and 282 deletions

View File

@@ -6,10 +6,12 @@ use Illuminate\Database\Eloquent\Model;
class Tax extends Model
{
protected $table = 'ab_tax';
const CREATED_AT = 'date_orig';
const UPDATED_AT = 'date_last';
public $timestamps = FALSE;
protected $dates = ['date_orig','date_last'];
public $dateFormat = 'U';
/* RELATIONS */
public function country()
{
return $this->belongsTo(Country::class);
}
}