ALTER TABLE "public"."user_sonata"
ADD CONSTRAINT "type_document_usuario" FOREIGN KEY ("type_document") REFERENCES "public"."document_type" ("id_document_type") ON DELETE NO ACTION ON UPDATE NO ACTION;

ALTER TABLE "public"."user_sonata"
ALTER COLUMN "type_document" TYPE varchar(10) COLLATE "default";