agregar indices unicos para family doctor y specialist

This commit is contained in:
Gabriel Paradiso
2019-12-13 16:56:06 +01:00
parent 9d9acb11d9
commit 6f7790d907

View File

@@ -64,6 +64,9 @@ CREATE TABLE myhealth.familydoctor
)
TABLESPACE pg_default;
CREATE UNIQUE INDEX family_doctor_professionaln_index
ON myhealth.familydoctor (professionalnumber);
ALTER TABLE myhealth.familydoctor
OWNER to "USER";
@@ -193,6 +196,9 @@ CREATE TABLE myhealth.specialistdoctor
)
TABLESPACE pg_default;
CREATE UNIQUE INDEX specialistdoctor_professionaln_index
ON myhealth.specialistdoctor (professionalnumber);
ALTER TABLE myhealth.specialistdoctor
OWNER to "USER";