CREATE VIEW {# geotrek.core #}.v_trails AS (
    SELECT core_topology.geom, core_topology.id, core_trail.*
    FROM core_trail, core_topology
    WHERE core_trail.topo_object_id = core_topology.id
    AND core_topology.deleted = FALSE
);

CREATE VIEW {# geotrek.core #}.v_trails AS (
    SELECT core_topology.geom, core_topology.id, core_topology.uuid, core_trail.*
    FROM core_trail, core_topology
    WHERE core_trail.topo_object_id = core_topology.id
    AND core_topology.deleted = FALSE
);

Add UUID to trails view
Add UUID to trails view