feat: add seeding script for pricing plans in database

This commit is contained in:
2026-04-23 15:00:49 +02:00
parent 1a66c46389
commit 11678e0b33

View File

@@ -26,7 +26,9 @@ async function main() {
tier: Plan.STARTER, tier: Plan.STARTER,
name: 'Starter', name: 'Starter',
priceXOF: 'Gratuit', priceXOF: 'Gratuit',
yearlyPriceXOF: 'Gratuit',
priceEUR: '0€', priceEUR: '0€',
yearlyPriceEUR: '0€',
description: 'Pour démarrer votre présence en ligne.', description: 'Pour démarrer votre présence en ligne.',
features: [ features: [
'Fiche entreprise basique', 'Fiche entreprise basique',
@@ -41,8 +43,10 @@ async function main() {
{ {
tier: Plan.BOOSTER, tier: Plan.BOOSTER,
name: 'Booster', name: 'Booster',
priceXOF: '5.000 FCFA', priceXOF: '3 500 FCFA',
priceEUR: '8€', yearlyPriceXOF: '33 500 FCFA',
priceEUR: '5€',
yearlyPriceEUR: '48€',
description: "L'indispensable pour les entreprises en croissance.", description: "L'indispensable pour les entreprises en croissance.",
features: [ features: [
'Tout du plan Starter', 'Tout du plan Starter',
@@ -58,8 +62,10 @@ async function main() {
{ {
tier: Plan.EMPIRE, tier: Plan.EMPIRE,
name: 'Empire', name: 'Empire',
priceXOF: '15.000 FCFA', priceXOF: '13 000 FCFA',
priceEUR: '23€', yearlyPriceXOF: '125 000 FCFA',
priceEUR: '20€',
yearlyPriceEUR: '192€',
description: 'Dominez votre marché avec une visibilité maximale.', description: 'Dominez votre marché avec une visibilité maximale.',
features: [ features: [
'Tout du plan Booster', 'Tout du plan Booster',
@@ -71,7 +77,7 @@ async function main() {
], ],
offerLimit: 1000, offerLimit: 1000,
recommended: false, recommended: false,
color: 'gray' color: 'amber'
} }
]; ];