|
|
|
@ -33,6 +33,8 @@ CREATE TABLE prestadores
|
|
|
|
fim date,
|
|
|
|
fim date,
|
|
|
|
ordem int4,
|
|
|
|
ordem int4,
|
|
|
|
activo char(1),
|
|
|
|
activo char(1),
|
|
|
|
|
|
|
|
faz_consultas char(1),
|
|
|
|
|
|
|
|
faz_ecds char(1),
|
|
|
|
CONSTRAINT prestadores_pkey PRIMARY KEY (id),
|
|
|
|
CONSTRAINT prestadores_pkey PRIMARY KEY (id),
|
|
|
|
CONSTRAINT prestadores_contacto_id_fkey FOREIGN KEY (contacto_id)
|
|
|
|
CONSTRAINT prestadores_contacto_id_fkey FOREIGN KEY (contacto_id)
|
|
|
|
REFERENCES contactos (id) MATCH SIMPLE
|
|
|
|
REFERENCES contactos (id) MATCH SIMPLE
|
|
|
|
@ -40,9 +42,8 @@ CREATE TABLE prestadores
|
|
|
|
)
|
|
|
|
)
|
|
|
|
WITHOUT OIDS;
|
|
|
|
WITHOUT OIDS;
|
|
|
|
ALTER TABLE prestadores OWNER TO postgres;
|
|
|
|
ALTER TABLE prestadores OWNER TO postgres;
|
|
|
|
alter table marcacoes_grupos_realizados
|
|
|
|
|
|
|
|
add marcacoes_trabalhador_estado_id int4
|
|
|
|
|
|
|
|
references marcacoes_trabalhador_estados(id)
|
|
|
|
|
|
|
|
-- Table: marcacoes_trabalhador_estados
|
|
|
|
-- Table: marcacoes_trabalhador_estados
|
|
|
|
|
|
|
|
|
|
|
|
-- DROP TABLE marcacoes_trabalhador_estados;
|
|
|
|
-- DROP TABLE marcacoes_trabalhador_estados;
|
|
|
|
|