From cbbaf2e94041e62bcdb033bc5d8df0f0068f9e8d Mon Sep 17 00:00:00 2001 From: ertopogo Date: Sun, 25 Jan 2026 02:14:27 +0100 Subject: ajout d'un fichier seed --- backend/data/seed.json | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 backend/data/seed.json (limited to 'backend/data') diff --git a/backend/data/seed.json b/backend/data/seed.json new file mode 100644 index 0000000..2c6b906 --- /dev/null +++ b/backend/data/seed.json @@ -0,0 +1,62 @@ +{ + "store": { + "currencies": ["eur"] + }, + "users": [ + { + "email": "admin@lsb.local", + "password": "supersecret" + } + ], + "regions": [ + { + "id": "fr", + "name": "France", + "currency_code": "eur", + "tax_rate": 0, + "payment_providers": ["manual"], + "fulfillment_providers": ["manual"], + "countries": ["fr"] + } + ], + "shipping_options": [ + { + "name": "Standard", + "region_id": "fr", + "provider_id": "manual", + "price_type": "flat_rate", + "amount": 500 + } + ], + "products": [ + { + "title": "Savon Lavande", + "handle": "savon-lavande", + "description": "Savon artisanal a la lavande.", + "thumbnail": "https://via.placeholder.com/600x600.png?text=Savon+Lavande", + "options": [ + { + "title": "Taille" + } + ], + "variants": [ + { + "title": "100g", + "prices": [ + { + "currency_code": "eur", + "amount": 650 + } + ], + "options": [ + { + "value": "100g" + } + ], + "inventory_quantity": 100, + "manage_inventory": true + } + ] + } + ] +} -- cgit v1.2.3