모델 코멘트 입력

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
+17 -8
View File
@@ -5,41 +5,50 @@ const Feature = sequelize.define('Feature', {
id: {
type: DataTypes.INTEGER.UNSIGNED,
primaryKey: true,
autoIncrement: true
autoIncrement: true,
comment: '기능 고유 식별자'
},
code: {
type: DataTypes.STRING,
allowNull: false,
unique: true
unique: true,
comment: '기능 코드'
},
name: {
type: DataTypes.STRING,
allowNull: false
allowNull: false,
comment: '기능명'
},
description: {
type: DataTypes.TEXT,
allowNull: true
allowNull: true,
comment: '기능 설명'
},
price: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
defaultValue: 0,
comment: '기능 가격'
},
status: {
type: DataTypes.ENUM('active', 'inactive', 'suspended'),
allowNull: false,
defaultValue: 'active'
defaultValue: 'active',
comment: '기능 상태'
},
createdAt: {
type: DataTypes.DATE,
allowNull: false
allowNull: false,
comment: '생성일'
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false
allowNull: false,
comment: '수정일'
}
}, {
tableName: 'Features',
comment: '클럽에서 제공하는 기능 정보를 저장하는 테이블',
timestamps: true
});