Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return queryInterface.createTable(
- { schema: "student", tableName: "students" },
- {
- email: {
- type: Sequelize.STRING,
- primaryKey: true
- },
- password: {
- type: Sequelize.STRING
- },
- fname: {
- type: Sequelize.STRING
- },
- lname: {
- type: Sequelize.STRING
- },
- createdAt: {
- allowNull: false,
- type: Sequelize.DATE
- },
- updatedAt: {
- allowNull: false,
- type: Sequelize.DATE
- },
- courseId: {
- type: Sequelize.STRING,
- references: {schema:"student", model: "courses", key:'cId'},
- }
- }
- );
- return queryInterface.dropTable("students");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement