public 기능 완료
This commit is contained in:
@@ -33,6 +33,16 @@ const Event = sequelize.define('Event', {
|
||||
defaultValue: '정기전',
|
||||
comment: '이벤트 유형'
|
||||
},
|
||||
publicHash: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '공개 URL 해시'
|
||||
},
|
||||
accessPassword: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '공개 URL 비밀번호'
|
||||
},
|
||||
startDate: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: false,
|
||||
|
||||
@@ -35,6 +35,11 @@ const EventParticipant = sequelize.define('EventParticipant', {
|
||||
},
|
||||
comment: '이벤트 팀 ID'
|
||||
},
|
||||
comment: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '비고'
|
||||
},
|
||||
status: {
|
||||
type: DataTypes.ENUM('참가예정', '참가확정', '취소'),
|
||||
allowNull: false,
|
||||
|
||||
@@ -39,7 +39,7 @@ const Member = sequelize.define('Member', {
|
||||
comment: '성별'
|
||||
},
|
||||
memberType: {
|
||||
type: DataTypes.ENUM('정회원', '준회원', '운영진', '모임장'),
|
||||
type: DataTypes.ENUM('정회원', '준회원', '게스트', '운영진', '모임장'),
|
||||
allowNull: false,
|
||||
defaultValue: '준회원',
|
||||
comment: '회원 유형'
|
||||
|
||||
@@ -27,8 +27,8 @@ const syncModels = async () => {
|
||||
// await sequelize.query('SET FOREIGN_KEY_CHECKS = 1');
|
||||
|
||||
// 운영 alter: true - 구조변경만 alter처리
|
||||
// await sequelize.sync({ alter: true });
|
||||
await sequelize.sync();
|
||||
await sequelize.sync({ alter: true });
|
||||
// await sequelize.sync();
|
||||
} catch (error) {
|
||||
console.error('모델 동기화 중 오류 발생:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user