Database schema object naming considerations

As you customize your e-commerce application, you may create new database tables. When creating these tables, IBM recommends that you follow a set of conventions, so that your tables are created in a manner consistent with the WebSphere Commerce tables.

Subsequent sections provide guidance for the naming of database schema objects.

 

Naming conventions for tables and views

The following list provides guidance for the naming of new tables and views:

 

Naming conventions for columns

In general, when you create new tables that follow the preceding conventions for table names, you can implement your own naming convention for columns within those tables. This assumes that you always use fully-qualified column names in SQL statements. If, however, you want to perform joins with existing WebSphere Commerce tables and you do not want to use fully-qualified column names, then follow the column naming conventions described in this section.

The following list provides guidance for the naming of columns in new tables:

 

Naming conventions for indexes

The following list provides guidance for the naming of indexes in new tables:

 

Naming conventions for primary keys

The following list provides guidance for the naming of primary keys for new tables:

 

Naming conventions for foreign keys

The following list provides guidance for the naming of foreign keys for new tables:

 

Naming conventions for database triggers

The following list provides guidance for the naming of database triggers:

Related reference