课程: Databases for Node.js Developers (2021)

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Review the auto-generated database structure

Review the auto-generated database structure

- [Instructor] I'm back in MySQLWorkbench to review the database structure that was just created by Sequelize. So open the shopper database and I open the tables and there you now see that we have orders in the order items table. If I click on orders, I can right click and select the table inspector, and there I can select columns, and I see the columns that were created. You also see that there is a created at and updated at column, very similar to Mongoose, it's created automatically. What it attempts is similar, but it also has this foreign key which is the key that points back to the order ID. Let's look also at what are items in the table inspector, and here we also see the columns that were created for us. And that's all fine and interesting, but I will show you something really cool now. So I go to database and reverse engineer, and there I select the stored connection. So this is the connection are currently on.…

内容