
-- DROP TABLE auth.modul_extern;

CREATE TABLE auth.modul_extern
(
    id integer NOT NULL DEFAULT nextval('auth.modul_extern_id_seq'::regclass),
    idresource integer NOT NULL,
    CONSTRAINT pk_id_modul_extern PRIMARY KEY (id),
    CONSTRAINT fk_resursa FOREIGN KEY (id)
        REFERENCES auth.resource (id) MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)
WITH (
    OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE auth.modul_extern
    OWNER to postgres;