feat: Reimplement order and invoice management with new service and repository layers, introduce compression middleware, and update database schema.
This commit is contained in:
@@ -5,21 +5,21 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by ServiceAddon.
|
||||
* The order__order_addons table has been removed in the billing refactor.
|
||||
* Use ServiceAddon for configurable resources attached to a Service.
|
||||
*/
|
||||
class OrderAddon extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $table = 'order__order_addons';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function orderItem()
|
||||
{
|
||||
return $this->belongsTo(OrderItem::class, 'order_item_id');
|
||||
}
|
||||
|
||||
public function addonItems()
|
||||
{
|
||||
return $this->belongsTo(Addon::class, 'addon_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user