I've heard of it before, in the project. Powerdesinger , but has never been used, this time through the foundation of the elective module finally has the opportunity to pass Powerdesinger of the CDM model to create a database.
Powerdesinger There are several data models in the system, namely: M----Model,
- Conceptual Data Model ( CDM ) Conceptual Diagram Model
- logical Data Model ( LDM )
- Physical Data Model ( PDM ) Physical Diagram Model
- Object-oriented model ( OOM )
- Business Process Model ( BPM )
Degree of Abstraction ( lower in descending order ) :
Cdm->ldm->pdm
Powerdesinger is the ability to generate a physical data model from a conceptual data model and then generate the database directly from the resulting physical data model. Now let's take a look at the specific steps:
- First, let's draw a good entity Relationship diagram:
- The representation of the entity is the same as ours, but the relationship here is somewhat different.
Select TextBox in the
then connect two entities to the drawing area and double-click on the picture. " Contact ", we can see
- Note In an Entity Relationship diagram, there is no inclusion relationship between entities, and there is a simple association between individual entities.
- An association between entities should have its own name.
through Select Select the icon you want to convert
- Transform a well-drawn entity diagram into a physical data model
- entity Relationship One-to-one relationships in each " a " contains another " a id
- one-to-many relationships in entity relationships , in multiple " square Each record in span lang= "ZH-CN" style= "font-size:12pt" contains " a " id
- a many-to-many relationship in an entity relationship that generates each record containing each " more " Party's ID another table.
Creating database scripts using the physical data model
- position the active window in the PDM in the toolbar, click database->generate DataBase, get the Build database SQL statement.
- by executing SQL statement, we can generate the corresponding data tables and databases.
Powerdesinger: Physical Data Model (relational table), Entity diagram,->sql statement-database