1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-12-12 11:45:22 +02:00
factorio-sites/apps/blueprints/prisma/views/blueprint_items.sql

6 lines
218 B
MySQL
Raw Normal View History

CREATE OR REPLACE VIEW public.blueprint_items
AS
SELECT distinct UNNEST(ARRAY(SELECT jsonb_object_keys(data -> 'items'))) as item FROM blueprint;
ALTER TABLE public.blueprint_items
OWNER TO "factorio-blueprints";