Subversion Repositories Sigmater

Rev

Blame | Last modification | View Log | Download | RSS feed

create table WS_ABILITAZIONI
(
  COD_PROFILO_U    NUMBER(10) not null,
  COD_PROFILO_FUNZ NUMBER(10) not null,
  COD_FILTRO       NUMBER(10)
)
tablespace &REGMON_TBS_NAME
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );
alter table WS_ABILITAZIONI
  add constraint PK_WS_ABILITAZIONI primary key (COD_PROFILO_U, COD_PROFILO_FUNZ)
  using index 
  tablespace &REGMON_TBS_NAME
  pctfree 10
  initrans 2
  maxtrans 255
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );
alter table WS_ABILITAZIONI
  add constraint FK_WS_ABILI_REF_63_WS_PROFI foreign key (COD_PROFILO_U)
  references WS_PROFILI_UTENTE (COD_PROFILO_U);
alter table WS_ABILITAZIONI
  add constraint FK_WS_ABILI_REF_67_WS_PROFI foreign key (COD_PROFILO_FUNZ)
  references WS_PROFILI_FUNZIONE (COD_PROFILO_FUNZ) on delete cascade;
alter table WS_ABILITAZIONI
  add constraint FK_WS_ABILI_REF_71_WS_FILTR foreign key (COD_FILTRO)
  references WS_FILTRI (COD_FILTRO);