Database Design Studio (DDS) is preconfigured to support 31 different datatypes and provides seven additional datatypes (User1 to User7) that the user can edit to support other types.
To add a new datatype, you should begin by using the tool DbConfig to define a DDS generic name and default type behaviour. Then load the modified datatype template into DDS, and add the specific datatype behaviour mapping. Listed below are the steps to create a new (MySQL) datatype called 'SET':
|
1. |
Open an ERD file or start a new ERD drawing. |
||||||||||||
|
2. |
Click the Datatypes TAB. |
||||||||||||
|
3. |
Select Edit DDS Datatypes... from the Datatypes menu to start the DbConfig application. |
||||||||||||
|
|
|||||||||||||
|
4. |
When you are back in DDS, select Load DDS Datatypes from the Datatypes menu. |
||||||||||||
|
5. |
Click on the MySQL TAB. |
||||||||||||
|
|
|||||||||||||
|
6. |
Optionally, repeat step 5 for all other DBMS Targets, if unsupported, make the Maps To either a supported type, such as VARCHAR(200), or type **UNSUPPORTED** in which case it will cause an error to be reported when trying to create the database table. |
||||||||||||
|
7. |
Save your ERD file. |
||||||||||||
|
8. |
If you want to make this the default mapping file for DDS, follows these steps: |
||||||||||||
|
|
Because you have nominated that the datatype is a List type when you use this type, such as the ENUM type, you will be able to (optionally) add the list values into the Precision field of the attributes properties such as shown in the enum types example.
See also: Enumerated Types