-- ==============================
-- Частина І — Lucky Shrub (Orders)
-- ==============================

CREATE DATABASE IF NOT EXISTS LuckyShrub;

USE LuckyShrub;

DROP TABLE IF EXISTS Orders;

CREATE TABLE Orders (
    OrderID INT PRIMARY KEY,
    ClientID VARCHAR(10) NOT NULL,
    ProductID VARCHAR(10) NOT NULL,
    Quantity INT NOT NULL,
    Cost DECIMAL(10, 2) NOT NULL
);

-- Початкові дані (записи 1–8)
INSERT INTO
    Orders (
        OrderID,
        ClientID,
        ProductID,
        Quantity,
        Cost
    )
VALUES (1, 'Cl1', 'P1', 2, 1000.00),
    (2, 'Cl2', 'P2', 3, 150.00),
    (3, 'Cl3', 'P3', 1, 500.00),
    (4, 'Cl1', 'P4', 6, 300.00),
    (5, 'Cl2', 'P1', 4, 2000.00),
    (6, 'Cl3', 'P2', 2, 100.00),
    (7, 'Cl1', 'P3', 8, 4000.00),
    (8, 'Cl2', 'P4', 1, 50.00);

-- ==============================
-- Частина ІІ — Starters
-- ==============================

DROP TABLE IF EXISTS Starters;

CREATE TABLE Starters (
    Name VARCHAR(100) PRIMARY KEY,
    Price DECIMAL(5, 2) NOT NULL,
    Type VARCHAR(50) NOT NULL
);

-- Початкові дані
INSERT INTO
    Starters (Name, Price, Type)
VALUES ('Hummus', 5.00, 'Turkish'),
    ('Falafel', 7.50, 'Turkish'),
    (
        'Spring rolls',
        8.00,
        'Chinese'
    ),
    ('Samosa', 6.50, 'Indian');