모델 코멘트 입력

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
+13 -6
View File
@@ -5,31 +5,38 @@ const SubscriptionPlan = sequelize.define('SubscriptionPlan', {
id: {
type: DataTypes.INTEGER.UNSIGNED,
primaryKey: true,
autoIncrement: true
autoIncrement: true,
comment: '구독 플랜 고유 식별자'
},
name: {
type: DataTypes.STRING,
allowNull: false
allowNull: false,
comment: '플랜명'
},
description: {
type: DataTypes.TEXT
type: DataTypes.TEXT,
comment: '플랜 설명'
},
maxMembers: {
type: DataTypes.INTEGER,
allowNull: false
allowNull: false,
comment: '최대 허용 회원 수'
},
price: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
defaultValue: 0,
comment: '플랜 가격'
},
status: {
type: DataTypes.ENUM('active', 'inactive'),
defaultValue: 'active',
allowNull: false
allowNull: false,
comment: '플랜 상태'
}
}, {
tableName: 'SubscriptionPlan',
comment: '구독 플랜 정보를 저장하는 테이블',
timestamps: true
});