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

6 lines
229 B
SQL

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