create table test28_master (
  id        numeric(10,0)  not null,
  value1    varchar(200)   not null,
  group_id  numeric(10,0)  default null
);

create unique index test28_master_pk on test28_master ( id );

create table test28_detail (
  detail_id  numeric(10,0)  not null,
  master_id  numeric(10,0)  not null,
  value1     varchar(200)   not null
);

create unique index test28_detail_pk on test28_detail ( detail_id );

create table test28_detail2 (
  detail2_id  numeric(10,0)  not null,
  detail_id   numeric(10,0)  not null,
  value1      varchar(200 )  not null
);

create unique index test28_detail2_pk on test28_detail2 ( detail2_id );

create table test28_detail3 (
  detail3_id  numeric(10,0)  not null,
  detail_id   numeric(10,0)  not null,
  value1      varchar(200 )  not null
);

create unique index test28_detail3_pk on test28_detail3 ( detail3_id );

create table test28_group (
  id      numeric(10,0)  not null,
  value1  varchar(200)   not null
);

create unique index test28_group_pk on test28_group ( id );
