모델 코멘트 입력

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
+15 -7
View File
@@ -5,7 +5,8 @@ const ClubFeature = sequelize.define('ClubFeature', {
id: {
type: DataTypes.INTEGER.UNSIGNED,
primaryKey: true,
autoIncrement: true
autoIncrement: true,
comment: '클럽-기능 연결 고유 식별자'
},
clubId: {
type: DataTypes.INTEGER.UNSIGNED,
@@ -13,7 +14,8 @@ const ClubFeature = sequelize.define('ClubFeature', {
references: {
model: 'Clubs',
key: 'id'
}
},
comment: '클럽 ID'
},
featureId: {
type: DataTypes.INTEGER.UNSIGNED,
@@ -21,27 +23,33 @@ const ClubFeature = sequelize.define('ClubFeature', {
references: {
model: 'Features',
key: 'id'
}
},
comment: '기능 ID'
},
enabled: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true
defaultValue: true,
comment: '기능 활성화 여부'
},
expiryDate: {
type: DataTypes.DATE,
allowNull: true
allowNull: true,
comment: '기능 만료일'
},
createdAt: {
type: DataTypes.DATE,
allowNull: false
allowNull: false,
comment: '생성일'
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false
allowNull: false,
comment: '수정일'
}
}, {
tableName: 'ClubFeatures',
comment: '클럽별 활성화된 기능 정보를 저장하는 테이블',
timestamps: true
});