모델 코멘트 입력
This commit is contained in:
@@ -5,7 +5,8 @@ const EventScore = sequelize.define('EventScore', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
autoIncrement: true,
|
||||
comment: '점수 고유 식별자'
|
||||
},
|
||||
eventId: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
@@ -13,7 +14,8 @@ const EventScore = sequelize.define('EventScore', {
|
||||
references: {
|
||||
model: 'Events',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
comment: '이벤트 ID'
|
||||
},
|
||||
participantId: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
@@ -21,31 +23,38 @@ const EventScore = sequelize.define('EventScore', {
|
||||
references: {
|
||||
model: 'EventParticipants',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
comment: '이벤트 참가자 ID'
|
||||
},
|
||||
teamNumber: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
allowNull: true,
|
||||
comment: '팀 번호'
|
||||
},
|
||||
gameNumber: {
|
||||
type: DataTypes.INTEGER.UNSIGNED,
|
||||
allowNull: false
|
||||
allowNull: false,
|
||||
comment: '게임 번호'
|
||||
},
|
||||
score: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false
|
||||
allowNull: false,
|
||||
comment: '점수'
|
||||
},
|
||||
handicap: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
defaultValue: 0
|
||||
defaultValue: 0,
|
||||
comment: '핸디캡'
|
||||
},
|
||||
totalScore: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false
|
||||
allowNull: false,
|
||||
comment: '총점'
|
||||
}
|
||||
}, {
|
||||
tableName: 'EventScores',
|
||||
comment: '이벤트별 참가자 점수 정보를 저장하는 테이블',
|
||||
timestamps: true
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user