Advertisement
Guest User

Untitled

a guest
May 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. -- Table: "Municipio"."Notificacao"
  2.  
  3. -- DROP TABLE "Municipio"."Notificacao";
  4.  
  5. CREATE TABLE "Municipio"."Notificacao"
  6. (
  7. id bigserial NOT NULL,
  8. dt_notific date,
  9. se_notif integer,
  10. ano_notif integer,
  11. dt_sin_pri date,
  12. se_sin_pri integer,
  13. dt_digita date,
  14. bairro_nome text,
  15. bairro_bairro_id integer,
  16. municipio_geocodigo integer,
  17. nu_notific integer,
  18. cid10_codigo character varying(5),
  19. dt_nasc date,
  20. cs_sexo character varying(1),
  21. nu_idade_n integer,
  22. CONSTRAINT "Notificacao_pk" PRIMARY KEY (id),
  23. CONSTRAINT casos_unicos UNIQUE (nu_notific, dt_notific, cid10_codigo, municipio_geocodigo)
  24. )
  25. WITH (
  26. OIDS=FALSE
  27. );
  28. ALTER TABLE "Municipio"."Notificacao"
  29. OWNER TO administrador;
  30. GRANT ALL ON TABLE "Municipio"."Notificacao" TO administrador;
  31. GRANT ALL ON TABLE "Municipio"."Notificacao" TO "Dengue";
  32. COMMENT ON TABLE "Municipio"."Notificacao"
  33. IS 'Casos de notificacao de dengue';
  34.  
  35. -- Index: "Municipio"."Dengue_idx_data"
  36.  
  37. -- DROP INDEX "Municipio"."Dengue_idx_data";
  38.  
  39. CREATE INDEX "Dengue_idx_data"
  40. ON "Municipio"."Notificacao"
  41. USING btree
  42. (dt_notific DESC, se_notif DESC);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement