/*==============================================================*/
/* Table: POSITIONIERTE_ABFRAGESCHABLONE */
/*==============================================================*/
create table POSITIONIERTE_ABFRAGESCHABLONE (
ABFRAGESCHABLONE_ID INTEGER not null,
POSITION INTEGER not null,
WEBSCHABLONE_ID INTEGER not null,
constraint PK_POSITIONIERTE_ABFRAGESCHABL
primary key (ABFRAGESCHABLONE_ID, POSITION),
constraint FK_POSITION_ENTHAELT_WEBSEITE
foreign key (WEBSCHABLONE_ID)
references WEBSEITENSCHABLONE (WEBSCHABLONE_ID),
constraint FK_POSITION_GEORDNET__ABFRAGES
foreign key (ABFRAGESCHABLONE_ID)
references ABFRAGESCHABLONE (ABFRAGESCHABLONE_ID)
)
/
Zu einer Webseitenschablone gehören 1..n positionierte Abfrageschablonen. Diese Beziehung wird über den Fremdschlüssel WEBSCHABLONE_ID ausgedrückt. Jede positionierte Abfrageschablone referenziert eine Abfrageschablone. POSTION ist eine fortlaufende Nummer, die wiederum über eine Sequenz vergeben wird.