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

bugfix 폴더명수정(#3)

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