Initial commit
This commit is contained in:
77
apps/backend/prisma/plans.seed-data.ts
Normal file
77
apps/backend/prisma/plans.seed-data.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
export const planSeeds = [
|
||||
{
|
||||
code: 'BASIC',
|
||||
name: 'Basic',
|
||||
price: '49.00',
|
||||
rules: {
|
||||
version: 'v1',
|
||||
limits: {
|
||||
maxCourts: 2,
|
||||
maxBookingsPerDay: 80,
|
||||
maxActiveUsers: 3,
|
||||
maxConcurrentBookingsPerSlot: 1,
|
||||
},
|
||||
policies: {
|
||||
maxAdvanceBookingDays: 7,
|
||||
minCancellationNoticeHours: 2,
|
||||
allowOverbooking: false,
|
||||
},
|
||||
features: {
|
||||
onlinePayments: false,
|
||||
publicBookingPage: true,
|
||||
advancedReports: false,
|
||||
whatsappReminders: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
code: 'ADVANCED',
|
||||
name: 'Advanced',
|
||||
price: '99.00',
|
||||
rules: {
|
||||
version: 'v1',
|
||||
limits: {
|
||||
maxCourts: 5,
|
||||
maxBookingsPerDay: 220,
|
||||
maxActiveUsers: 8,
|
||||
maxConcurrentBookingsPerSlot: 1,
|
||||
},
|
||||
policies: {
|
||||
maxAdvanceBookingDays: 15,
|
||||
minCancellationNoticeHours: 2,
|
||||
allowOverbooking: false,
|
||||
},
|
||||
features: {
|
||||
onlinePayments: true,
|
||||
publicBookingPage: true,
|
||||
advancedReports: true,
|
||||
whatsappReminders: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
code: 'ENTERPRISE',
|
||||
name: 'Enterprise',
|
||||
price: '199.00',
|
||||
rules: {
|
||||
version: 'v1',
|
||||
limits: {
|
||||
maxCourts: 20,
|
||||
maxBookingsPerDay: 2000,
|
||||
maxActiveUsers: 50,
|
||||
maxConcurrentBookingsPerSlot: 2,
|
||||
},
|
||||
policies: {
|
||||
maxAdvanceBookingDays: 60,
|
||||
minCancellationNoticeHours: 1,
|
||||
allowOverbooking: true,
|
||||
},
|
||||
features: {
|
||||
onlinePayments: true,
|
||||
publicBookingPage: true,
|
||||
advancedReports: true,
|
||||
whatsappReminders: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
] as const
|
||||
Reference in New Issue
Block a user