-- Schema for recipes_woodworking table
-- Run this in psql to create the table.
DROP TABLE IF EXISTS recipes_woodworking;

CREATE TABLE recipes_woodworking (
    id SERIAL PRIMARY KEY,
    category TEXT NOT NULL,
    level INT NOT NULL,
    subcrafts JSONB,
    name TEXT NOT NULL,
    crystal TEXT NOT NULL,
    key_item TEXT,
    ingredients JSONB,
    hq_yields JSONB
);

-- Useful indexes
CREATE INDEX idx_recipes_woodworking_level ON recipes_woodworking(level);
CREATE INDEX idx_recipes_woodworking_name ON recipes_woodworking(name);
CREATE INDEX idx_recipes_woodworking_crystal ON recipes_woodworking(crystal);
