Files
Mog-Squire/schemas/recipes_woodworking.sql
2025-07-07 13:39:46 +01:00

21 lines
618 B
SQL

-- 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);