모델 코멘트 입력

This commit is contained in:
2025-04-26 08:04:04 +09:00
parent d1b22d4272
commit 283c8a7f4a
18 changed files with 293 additions and 140 deletions
+6
View File
@@ -6,25 +6,31 @@ const EventTeam = sequelize.define('EventTeam', {
type: DataTypes.INTEGER.UNSIGNED,
primaryKey: true,
autoIncrement: true,
comment: '이벤트 팀 고유 식별자',
},
eventId: {
type: DataTypes.INTEGER.UNSIGNED,
allowNull: false,
comment: '이벤트 ID',
},
teamNumber: {
type: DataTypes.INTEGER.UNSIGNED,
allowNull: false,
comment: '팀 번호',
},
name: {
type: DataTypes.STRING,
allowNull: true,
comment: '팀명',
},
handicap: {
type: DataTypes.INTEGER,
allowNull: true,
comment: '팀 핸디캡',
},
}, {
tableName: 'EventTeams',
comment: '이벤트별 팀 정보를 저장하는 테이블',
timestamps: true,
});