Here we use powerdesigner for a preliminary design, which may be modified later.
1. Start powerdesigner to create a physical data model.
2. Toolbar
3. Create a table model
4. Add the first table. You can double-click the table or right-click the table to open the following window.
Don't forget to select DBO as the owner and switch to the columns tab.
After that, the table looks like this kind of virtue.
Follow these steps to add other tables
6. Add a table relationship, select the Toolbox's link tool, drag the table from the table to the master table, and double-click the link to display the right window
7. Configure database connection
8. Create a database and generate tables in the database. Here, I first created a database in SQL Server Management studio, and then
Because the database has been generated and the DBO architecture exists, you can remove the check box and keep the default values for the rest. Note that if a table already exists in the Database and you want to keep the data, you have to choose from options, and the "selection" is also
Directly [run], you can see the generated table in the database.