1234567891011121314151617181920212223 |
- 'use strict';
- module.exports = {
- up: (queryInterface, Sequelize) => {
- return queryInterface.createTable('postnotifications', {
- id: {
- type: Sequelize.INTEGER,
- primaryKey: true,
- autoIncrement: true
- },
- createdAt: Sequelize.DATE,
- updatedAt: Sequelize.DATE,
-
- UserId: Sequelize.INTEGER,
- PostId: Sequelize.INTEGER,
- NotificationId: Sequelize.INTEGER
- })
- },
- down: (queryInterface, Sequelize) => {
- return queryInterface.dropTable('postnotifications');
- }
- };
|