Rework Site and top level tables
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user