Defining the database schema
In this step, you customize the physical layer
by adding tables to contain recipe information in the WebSphere Commerce
database schema.
About this task
The following diagram outlines the changes to the WebSphere Commerce database schema:
Procedure
Results
- XPROJECT
- This table holds Project information.
Column Name Data Type Description Constraint (PK, FK) XPROJECT_ID BIGINT NOT NULL The identifier for the project PK TIME INTEGER The time used for the project DIFFICULTY INTEGER The difficulty level for the project PRJNAME VARCHAR(64) NOT NULL The name of this project STOREENT_ID INTEGER NOT NULL The store which the project belongs to. FK to STOREENT table OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJDES
- This table holds language-dependent information related to a project.
Column Name Data Type Description Constraint (PK, FK) XPROJECT_ID BIGINT NOT NULL The identifier for the project PK, FK to XPROJECT table LANGUAGE_ID INTEGER NOT NULL The identifier of the language PK, FK to LANGUAGE table SHORTDESC VARCHAR(254) The short description for the project LONGDESC VARCHAR(1024) The long description for the project OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJMTR
- This table holds material information related to a Project.
Column Name Data Type Description Constraint (PK, FK) XPROJECT_ID BIGINT NOT NULL The identifier for the project FK to XPROJECT table XPRJMTR_ID BIGINT NOT NULL The identifier for the project material. PK PRJMTRNAME VARCHAR(64) NOT NULL The name of the material AMOUNT DOUBLE The amount of the material QTYUNIT_ID CHAR(16) The quantity unit of the material. OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJMTRDES
- This table holds material-related language-dependent information.
Column Name Data Type Description Constraint (PK, FK) XPRJMTR_ID BIGINT NOT NULL The identifier for the project material. PK, FK to XPRJMTR table LANGUAGE_ID INTEGER NOT NULL The identifier of the language PK, FK to LANGUAGE table SHORTDESC VARCHAR(254) The short description for the material OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJMTRCATREL
- This table contains relationships between materials and catalog
entries.
Column Name Data Type Description Constraint (PK, FK) XPRJMTR_ID BIGINT NOT NULL The identifier for the project material. PK, FK to XPRJMTR table CATENTRY_ID BIGINT NOT NULL The identifier of the catentry FK to CATENTRY table STOREENT_ID INTEGER NOT NULL The store which the relationship belongs to. PK, FK to STOREENT table OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJINS
- This table holds instruction information related to a project.
Column Name Data Type Description Constraint (PK, FK) XPRJINS_ID BIGINT NOT NULL The identifier for the project instruction. PK XPROJECT_ID BIGINT NOT NULL The identifier for the project FK to XPROJECT table SEQ INTEGER The sequence number for the project instruction ISOPTIONAL INTEGER If the step is optional OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJINSDES
- This table holds language-dependent information related to an
instruction.
Column Name Data Type Description Constraint (PK, FK) XPRJINS_ID BIGINT NOT NULL The identifier for the project instruction. PK, FK to XPRJINS table LANGUAGE_ID INTEGER NOT NULL The identifier of the language PK, FK to LANGUAGE table SHORTDESC VARCHAR(1024) The short description for the material OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJCATREL
- This table hold the relationship between project and catentry.
Column Name Data Type Description Constraint (PK, FK) XPROJECT_ID BIGINT NOT NULL The identifier for the project PK, FK to XPROJECT table CATENTRY_ID BIGINT NOT NULL The identifier of the catentry PK,FK to CATENTRY table STOREENT_ID INTEGER NOT NULL The store which the relationship belongs to. FK to STOREENT table OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJCOL
- This table holds information related to a project collection.
Column Name Data Type Description Constraint (PK, FK) XPRJCOL_ID BIGINT NOT NULL The identifier for the project collection PK PRJCOLNAME VARCHAR(64) NOT NULL The name of this project collection STOREENT_ID INTEGER NOT NULL The store which the project collection belongs to. FK to STOREENT table OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJCOLDES
- This table holds language-dependent information related to a project
collection.
Column Name Data Type Description Constraint (PK, FK) XPRJCOL_ID BIGINT NOT NULL The identifier for the project collection PK, FK to XPRJCOL table LANGUAGE_ID INTEGER NOT NULL The identifier of the language PK, FK to LANGUAGE table SHORTDESC VARCHAR(254) The short description for the project collection OPTCOUNTER SMALLINT Reserved for IBM internal use. - XPRJPRJCOLREL
- This table holds the relationship between project and project
collection.
Column Name Data Type Description Constraint (PK, FK) XPROJECT_ID BIGINT NOT NULL The identifier for the project PK, FK to XPROJECT table XPRJCOL_ID BIGINT NOT NULL The identifier of the project collection PK,FK to XPRJCOL table STOREENT_ID INTEGER NOT NULL The store which the relationship belongs to. FK to STOREENT table OPTCOUNTER SMALLINT Reserved for IBM internal use.