시드 생성

This commit is contained in:
2025-04-24 12:01:51 +09:00
parent beac42d60c
commit 7fa99e6988
42 changed files with 938 additions and 1170 deletions
@@ -0,0 +1,36 @@
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.bulkInsert('SubscriptionPlan', [
{
name: 'Basic',
description: '기본적인 클럽 관리 기능을 제공합니다.',
price: 10000,
maxMembers: 10,
status: 'active',
createdAt: new Date(),
updatedAt: new Date()
},
{
name: 'Premium',
description: '고급 분석 기능과 함께 더 많은 회원을 관리할 수 있습니다.',
price: 25000,
maxMembers: 30,
status: 'active',
createdAt: new Date(),
updatedAt: new Date()
},
{
name: 'Enterprise',
description: '무제한 회원 관리와 모든 프리미엄 기능을 제공합니다.',
price: 50000,
maxMembers: 0,
status: 'active',
createdAt: new Date(),
updatedAt: new Date()
}
]);
},
down: async (queryInterface, Sequelize) => {
await queryInterface.bulkDelete('SubscriptionPlan', null, {});
}
};