모델 코멘트 입력

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
+9 -4
View File
@@ -5,7 +5,8 @@ const SubscriptionPlanFeature = sequelize.define('SubscriptionPlanFeature', {
id: {
type: DataTypes.INTEGER.UNSIGNED,
primaryKey: true,
autoIncrement: true
autoIncrement: true,
comment: '구독-기능 연결 고유 식별자'
},
planId: {
type: DataTypes.INTEGER.UNSIGNED,
@@ -13,7 +14,8 @@ const SubscriptionPlanFeature = sequelize.define('SubscriptionPlanFeature', {
references: {
model: 'SubscriptionPlans',
key: 'id'
}
},
comment: '구독 플랜 ID'
},
featureId: {
type: DataTypes.INTEGER.UNSIGNED,
@@ -21,15 +23,18 @@ const SubscriptionPlanFeature = sequelize.define('SubscriptionPlanFeature', {
references: {
model: 'Features',
key: 'id'
}
},
comment: '기능 ID'
},
status: {
type: DataTypes.ENUM('active', 'inactive'),
defaultValue: 'active',
allowNull: false
allowNull: false,
comment: '상태'
}
}, {
tableName: 'SubscriptionPlanFeatures',
comment: '구독 플랜별 제공 기능 정보를 저장하는 테이블',
timestamps: true
});