public 기능 완료

This commit is contained in:
2025-05-07 21:02:50 +09:00
parent 283c8a7f4a
commit 1684fbf5d1
28 changed files with 2522 additions and 194 deletions
+10
View File
@@ -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,
+5
View File
@@ -35,6 +35,11 @@ const EventParticipant = sequelize.define('EventParticipant', {
},
comment: '이벤트 팀 ID'
},
comment: {
type: DataTypes.STRING,
allowNull: true,
comment: '비고'
},
status: {
type: DataTypes.ENUM('참가예정', '참가확정', '취소'),
allowNull: false,
+1 -1
View File
@@ -39,7 +39,7 @@ const Member = sequelize.define('Member', {
comment: '성별'
},
memberType: {
type: DataTypes.ENUM('정회원', '준회원', '운영진', '모임장'),
type: DataTypes.ENUM('정회원', '준회원', '게스트', '운영진', '모임장'),
allowNull: false,
defaultValue: '준회원',
comment: '회원 유형'
+2 -2
View File
@@ -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);
}