모델 코멘트 입력
This commit is contained in:
@@ -5,7 +5,8 @@ const EventParticipant = sequelize.define('EventParticipant', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
autoIncrement: true,
|
||||
comment: '이벤트 참가자 고유 식별자'
|
||||
},
|
||||
eventId: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
@@ -13,7 +14,8 @@ const EventParticipant = sequelize.define('EventParticipant', {
|
||||
references: {
|
||||
model: 'Events',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
comment: '이벤트 ID'
|
||||
},
|
||||
memberId: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
@@ -21,7 +23,8 @@ const EventParticipant = sequelize.define('EventParticipant', {
|
||||
references: {
|
||||
model: 'Members',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
comment: '회원 ID'
|
||||
},
|
||||
teamId: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
@@ -29,20 +32,24 @@ const EventParticipant = sequelize.define('EventParticipant', {
|
||||
references: {
|
||||
model: 'EventTeams',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
comment: '이벤트 팀 ID'
|
||||
},
|
||||
status: {
|
||||
type: DataTypes.ENUM('참가예정', '참가확정', '취소'),
|
||||
allowNull: false,
|
||||
defaultValue: '참가예정'
|
||||
defaultValue: '참가예정',
|
||||
comment: '참가 상태'
|
||||
},
|
||||
paymentStatus: {
|
||||
type: DataTypes.ENUM('미납', '납부완료'),
|
||||
allowNull: false,
|
||||
defaultValue: '미납'
|
||||
defaultValue: '미납',
|
||||
comment: '참가비 납부 상태'
|
||||
}
|
||||
}, {
|
||||
tableName: 'EventParticipants',
|
||||
comment: '이벤트별 참가자 정보를 저장하는 테이블',
|
||||
timestamps: true
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user