First, use PowerDesigner to create a new model, File —> New Model
Then, switch to the Model types tab and check Physical Diagram
Then click the table icon on the right to create a table in the left panel as follows. Double-click the table, find the Columns tab, and add column fields to the database table
As shown in the figure, the created table does not have a Comment description field by default
Double-click on the table to be edited to open the Table Properties window and switch the upper tab to Columns
Click the Customize Columns and Filter button, the button in the red box below, or press the Ctrl+U shortcut key. In the opened Customize Columns and Filter window, tick the check box in front of Comment
At this point, you can see the Comment in the Columns tab page of the Table Properties window
However, after saving and returning to the design view, there is still no comment information, which is very inconvenient for us to design
Find Model->Extensions in the toolbar, as shown below
In the opened List of Extensions dialog box, create a new one, and then click the "Properties" button
Right click on Profile and click Add Metaclasses
Select Column, then click OK
Select Column, right click and select New->Extended Attribute
Name a name (such as zhComment), select String for dataType, select Computer, Read only
Note: Comment cannot be used for the name, because this is a built-in name, and if you use it, you will be prompted to duplicate the name
Switch to the Get Method Script tab and %Get% = ""
change to%Get% = Rtf2Ascii (obj.Comment)
Confirm to save, return to the view interface, find Tools->Display Preferences in the toolbar
Click Table->Advanced in turn
Select columns, then click the Select button on the right side of List Columns
Find the attribute set earlier, check it and save it
Back to the view interface, the table can already display the Comment field