package dev.model;

public class OrderDetail {
    private int id;
    private int orderId;
    private int menuItemId;
    private int quantity;
    private double price;  // unit price at purchase time

    public OrderDetail() {}

    public OrderDetail(int orderId, int menuItemId, int quantity, double price) {
        this.orderId = orderId;
        this.menuItemId = menuItemId;
        this.quantity = quantity;
        this.price = price;
    }

    public int getId(){ return id; }
    public void setId(int id){ this.id = id; }

    public int getOrderId(){ return orderId; }
    public void setOrderId(int o){ this.orderId = o; }

    public int getMenuItemId(){ return menuItemId; }
    public void setMenuItemId(int m){ this.menuItemId = m; }

    public int getQuantity(){ return quantity; }
    public void setQuantity(int q){ this.quantity = q; }

    public double getPrice(){ return price; }
    public void setPrice(double p){ this.price = p; }
}