feat: implement home page, business directory, and administrative management features with updated schema and API routes
Some checks failed
Build and Push App / build (push) Failing after 51s

This commit is contained in:
2026-04-23 14:40:50 +02:00
parent 88e4c13b9f
commit e6310f30de
23 changed files with 1124 additions and 222 deletions

View File

@@ -35,6 +35,7 @@ model Business {
id String @id @default(uuid())
name String
category String
suggestedCategory String?
location String // Legacy location string
countryId String?
city String?
@@ -74,6 +75,19 @@ model Business {
offers Offer[]
ratings Rating[]
country Country? @relation(fields: [countryId], references: [id])
categoryRef BusinessCategory? @relation(fields: [categoryId], references: [id])
categoryId String?
}
model BusinessCategory {
id String @id @default(uuid())
name String @unique
slug String @unique
icon String? // Lucide icon name
isActive Boolean @default(true)
businesses Business[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Country {
@@ -93,7 +107,9 @@ model PricingPlan {
tier Plan @unique
name String
priceXOF String
yearlyPriceXOF String?
priceEUR String
yearlyPriceEUR String?
description String
features String[]
offerLimit Int @default(1)