ALTER TABLE MNP_DBSS_IN_REC ADD FLAG_PREVALIDAZIONE VARCHAR2(1 BYTE);
ALTER TABLE MNP_DBSS_SCARTI_IN ADD FLAG_PREVALIDAZIONE VARCHAR2(1 BYTE);


CREATE SEQUENCE SEQ_SDP_OUT
    /
CREATE TABLE MNP_SDP_RETRIEVE_OUT (
                                       unique_id                      NUMBER(18,0) NOT NULL,
                                       da_scodare                     NUMBER(1,0) DEFAULT NULL NOT NULL,
                                       data_creazione                 DATE DEFAULT SYSDATE NOT NULL,
                                       data_invio                     DATE DEFAULT NULL,
                                       id_richiesta                   VARCHAR2(23) NOT NULL,
                                       tipo_cliente                   VARCHAR2(2) NOT NULL,
                                       MSISDN_TYPE                    NUMBER(1,0) NOT NULL,
                                       msisdn                         VARCHAR2(13) NOT NULL,
                                       CODICE_FISCALE_PIVA_IN              VARCHAR2(50),
                                       resp_timeout                   NUMBER(1,0) DEFAULT NULL NOT NULL,
                                       codice_fiscale_out                 VARCHAR2(1000),
                                       partita_iva                  VARCHAR2(50),
                                       CUSTOMER_CERT                  VARCHAR2(1)
)
    TABLESPACE TAB_BIG
/
ALTER TABLE MNP_SDP_RETRIEVE_OUT ADD (
  CONSTRAINT MNP_SDP_RETRIEVE_OUT
 PRIMARY KEY
 (UNIQUE_ID)
    USING INDEX
    TABLESPACE TAB_IDX_BIG
)
/