alter table SMACTS add constraint SMCACTS_HDR foreign key (DOCTYPE, ID) references SMDOCUMENTS (DOCTYPE, ID) on delete cascade;
alter table SMACTS add constraint SMCACTS_HDR foreign key (DOCTYPE, ID) references SMDOCUMENTS (DOCTYPE, ID) on delete cascade;
add constraint SMCDOCUMENTS_PK primary key (DOCTYPE, ID) using index tablespace INDEX pctfree 10 initrans 2 maxtrans 255 storage ( initial 8M minextents 1 maxextents unlimited );