Files
ems/db/views/R__vw_site_directory.sql
Dusan Vojacek 93f883f5e0
Some checks failed
CI and deploy / migration-check (push) Successful in 5s
CI and deploy / deploy (push) Failing after 20s
sql first refactor
2026-04-19 20:02:20 +02:00

20 lines
440 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- tenké čtení lokality pro API (Phase 1 místo select z ems.site v routerech)
drop view if exists ems.vw_site_directory;
create view ems.vw_site_directory as
select
s.id,
s.code,
s.name,
s.timezone,
s.latitude,
s.longitude,
s.active,
s.notes,
s.created_at
from ems.site s;
comment on view ems.vw_site_directory is
'Veřejná metadata lokality pro GET seznamů; čtení místo přímého dotazu na ems.site.';