Skip to content
Snippets Groups Projects
Commit ac9fe9cb authored by tpgus2603's avatar tpgus2603
Browse files

bugfix 폴더명수정(#3)

parent e863f1bb
Branches
No related tags found
1 merge request!5[#1#2#3] DB모델 객체 및 로그인 ,회원가입 구현
...@@ -5,7 +5,7 @@ const sequelize = require('../config/sequelize'); ...@@ -5,7 +5,7 @@ const sequelize = require('../config/sequelize');
const User = require('./User'); const User = require('./User');
const Schedule = require('./Schedule'); const Schedule = require('./Schedule');
const Meeting = require('./Meeting'); const Meeting = require('./Meeting');
const MeetingParticipant = require('./MeetingParticipant'); const MeetingParticipant = require('./MeetingParticipant'); //대소문자수정
const Friend = require('./Friend'); const Friend = require('./Friend');
module.exports = { module.exports = {
......
...@@ -7,7 +7,7 @@ const User = require('./User'); ...@@ -7,7 +7,7 @@ const User = require('./User');
const MeetingParticipant = sequelize.define('MeetingParticipant', {}, { const MeetingParticipant = sequelize.define('MeetingParticipant', {}, {
tableName: 'MeetingParticipants', tableName: 'MeetingParticipants',
timestamps: true, timestamps: false,
}); });
MeetingParticipant.belongsTo(Meeting, { foreignKey: 'meeting_id', as: 'meeting' }); MeetingParticipant.belongsTo(Meeting, { foreignKey: 'meeting_id', as: 'meeting' });
......
...@@ -19,7 +19,7 @@ const Schedule = sequelize.define('Schedule', { ...@@ -19,7 +19,7 @@ const Schedule = sequelize.define('Schedule', {
}, },
}, { }, {
tableName: 'Schedules', tableName: 'Schedules',
timestamps: true, timestamps: false,
}); });
Schedule.belongsTo(User, { foreignKey: 'user_id', as: 'user' }); Schedule.belongsTo(User, { foreignKey: 'user_id', as: 'user' });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment