CREATE SEQUENCE "public"."politica_privacidad_id_politica_privacidad_seq"
 INCREMENT 1
 MINVALUE 1
 MAXVALUE 9223372036854775807
 START 1
 CACHE 1;

ALTER TABLE "public"."politica_privacidad_id_politica_privacidad_seq" OWNER TO "postgres";


CREATE TABLE "public"."politica_privacidad" (
"id_politica_privacidad" int8 DEFAULT nextval('politica_privacidad_id_politica_privacidad_seq'::regclass) NOT NULL,
"id_person_data" uuid,
"fecha" timestamp(6),
"id_user" int8,
"comentarios" varchar(255) COLLATE "default",
"url_archivo_firma" varchar(255) COLLATE "default",
"estado" bool,
CONSTRAINT "politica_privacidad_pkey" PRIMARY KEY ("id_politica_privacidad"),
CONSTRAINT "fk_person_politica" FOREIGN KEY ("id_person_data") REFERENCES "public"."person_data" ("id_person") ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT "fk_user_politica" FOREIGN KEY ("id_user") REFERENCES "public"."user_sonata" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT
)
WITH (OIDS=FALSE)
;

ALTER TABLE "public"."politica_privacidad" OWNER TO "postgres";