Initial commit
This commit is contained in:
20
schemas/recipes_woodworking.sql
Normal file
20
schemas/recipes_woodworking.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- 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);
|
||||
Reference in New Issue
Block a user