# Cursor AI Prompt — Build the Zella Request Marketplace, Service Marketplace, Forum, Voice Calling & Zella Coin Wallet

You are a Senior Flutter, Laravel/PHP, MySQL, and System Architect.

You are working inside the existing **Zella Market** project. Do **NOT** create a new project. Extend the current architecture while maintaining the existing coding style, authentication system, notification system, chat system, database conventions, API structure, UI components, and admin panel.

The code must be production-ready, modular, scalable, secure, and optimized for performance.

---

# OBJECTIVE

Transform Zella from a normal marketplace into a complete community marketplace by adding:

* Buyer Request Marketplace
* Service Request Marketplace
* Jobs Marketplace
* Zella Forum
* Brand & Product Discussions
* Voice Calling
* Zella Coin Wallet
* Rewarded Ad Monetization
* Premium Subscription Support
* AI-powered Matching
* Admin Moderation

Everything should integrate with the existing marketplace.

---

# FEATURE 1 — BUYER REQUEST MARKETPLACE

Create a reverse marketplace.

Instead of sellers posting products first, buyers post what they are looking for.

Example:

"I need an iPhone 12 Pro Max below ₦100,000."

---

## Categories

Electronics

Phones

Vehicles

Fashion

Home

Property

Agriculture

Business

Others

---

## Request Fields

Title

Category

Budget

Currency

Location

Condition

Description

Photos

Urgency

Expiration Date

Status

Open

Closed

Expired

Completed

---

## Posting Rules

Free Users

Before posting:

Watch one Rewarded Ad

OR

Spend Zella Coins

Premium Users

No Ads

Unlimited Requests

Priority Requests

Verified Badge

---

## Viewing Requests

Free Users

Can browse list.

To view details:

Watch Rewarded Ad

OR

Spend Zella Coins

Premium

Unlimited access.

---

## Responding Flow

Seller opens request

↓

Watch Rewarded Ad

OR

Spend Zella Coins

↓

Response form opens

↓

Seller submits offer

↓

Buyer receives push notification

↓

Buyer opens notification

↓

Watch Rewarded Ad

OR

Spend Zella Coins

OR

Premium

↓

Private chat starts

↓

Negotiation

↓

Optional Voice Call

↓

Deal Completed

---

Every stage must support analytics.

Track:

Views

Ad unlocks

Responses

Successful deals

---

# FEATURE 2 — SERVICE REQUEST MARKETPLACE

Allow users to request services.

Examples

Need Plumber

Need Electrician

Need Mechanic

Need Flutter Developer

Need Lawyer

Need Photographer

Need Tutor

Need Cleaner

Need Driver

Need Graphic Designer

Need Carpenter

Need Fashion Designer

Need Makeup Artist

---

Fields

Service Title

Description

Budget

Location

Remote / Physical

Deadline

Attachments

Urgency

Workers respond exactly like Buyer Requests.

---

# FEATURE 3 — JOB MARKETPLACE

Employers can post jobs.

Job Seekers apply.

Categories

Remote

On-site

Internships

Contract

Part-time

Full-time

Applications

Resume Upload

Employer Dashboard

Application Tracking

Featured Jobs

Premium Employer

Verified Company

---

# FEATURE 4 — ZELLA FORUM

Build a Reddit + Facebook Groups + Nairaland style forum.

---

Forum Categories

Technology

Phones

Vehicles

Fashion

Business

Food

Agriculture

Crypto

Finance

Entertainment

Politics

Education

Travel

Gaming

Product Reviews

Brand Reviews

Complaints

Marketplace Tips

Deals

Scam Alerts

General Discussion

---

Each Post Supports

Text

Images

Videos

Polls

Questions

Reviews

Comparisons

Likes

Replies

Nested Replies

Mentions

Bookmarks

Reports

Sharing

Trending

Pinned Posts

---

# FEATURE 5 — BRAND PAGES

Every major brand gets a page.

Examples

Apple

Samsung

Tecno

Infinix

Toyota

Honda

LG

Nike

Adidas

Users can

Follow

Review

Rate

Ask Questions

Discuss

Upload Photos

Upload Videos

Report Fake Products

---

# FEATURE 6 — PRODUCT DISCUSSIONS

Every product listing automatically has

Discussion Tab

Reviews

Questions

Pros

Cons

Alternatives

Ratings

---

# FEATURE 7 — VOICE CALLING

Implement FREE internet voice calling.

Technology

Flutter WebRTC

Google STUN

Coturn TURN Server

Socket.io signaling

Firebase Cloud Messaging

Flow

Open Chat

↓

Tap Call

↓

Receiver gets Incoming Call

↓

Accept

↓

WebRTC Connection

↓

Voice Chat

Support

Mute

Speaker

Bluetooth

Call Timer

Reconnect

Missed Calls

Rejected Calls

Call Logs

No phone credits required.

Internet only.

Prepare architecture for Video Calls later.

---

# FEATURE 8 — ZELLA COIN WALLET

Create a complete internal virtual currency.

Wallet contains

Current Balance

Total Earned

Total Spent

Transaction History

Locked Coins

Pending Coins

---

Transactions

Daily Rewards

Referral Bonus

Watching Rewarded Ads

Posting Reviews

Forum Activity

Helping Buyers

Completing Sales

Reporting Scams

Admin Rewards

Purchases

Refunds

Premium Purchases

Boost Listings

Boost Requests

---

Coin Ledger

Every transaction must create immutable logs.

Fields

Transaction ID

User

Amount

Type

Reference

Status

Created At

Updated At

---

Coin Uses

Unlock Request Posting

Unlock Request Viewing

Unlock Chat

Boost Listings

Boost Requests

Highlight Ads

Premium Subscription

Forum Badges

Priority Support

Special Themes

Future Marketplace Payments

---

Admin should be able to

Credit Coins

Debit Coins

Freeze Wallet

Reverse Transactions

View Wallet History

Search Transactions

Export Reports

---

# FEATURE 9 — DAILY REWARDS

Daily Login

Daily Spin

Daily Missions

Watch Ads

Forum Participation

Successful Sales

Helpful Replies

Invite Friends

Consecutive Login Streak

Reward users with Zella Coins.

---

# FEATURE 10 — REPUTATION SYSTEM

Levels

Bronze

Silver

Gold

Diamond

Elite

Verified Merchant

Increase score using

Successful Sales

Positive Reviews

Forum Contributions

Helpful Answers

Completed Requests

Daily Activity

Reduce score for

Spam

Fake Listings

Scam Reports

Account Violations

---

# FEATURE 11 — PREMIUM MEMBERSHIP

Premium removes all ad gates.

Premium Benefits

Unlimited Requests

Unlimited Viewing

Unlimited Responses

Unlimited Chat Unlocks

Voice Calls without Ads

Verified Badge

Priority Ranking

Featured Listings

Exclusive Themes

Advanced Analytics

Premium Forum Badge

Priority Customer Support

---

# FEATURE 12 — ADMIN PANEL

Build full moderation tools.

Manage

Requests

Services

Jobs

Forum

Brands

Products

Users

Wallet

Coins

Reports

Ads

Premium

Notifications

Call Logs

Analytics

---

Dashboard

Daily Active Users

Requests

Completed Deals

Revenue

Coins Generated

Coins Spent

Ads Watched

Premium Users

Forum Activity

Reports

Trending Brands

Top Sellers

Top Buyers

---

# FEATURE 13 — NOTIFICATIONS

Push Notifications

In-app Notifications

Email (optional)

Notify

Request Response

Chat Started

Call Incoming

Missed Call

Wallet Credit

Wallet Debit

Coin Rewards

Forum Mentions

Replies

Likes

Job Applications

Premium Expiry

---

# FEATURE 14 — AI SMART MATCHING

When a buyer posts a request

Automatically search existing listings.

If matches exist

Suggest products instantly.

Example

Buyer wants

iPhone 12 Pro Max

System recommends

Matching listings

Matching sellers

Related products

Do this using lightweight search and keyword matching first. Only call AI when necessary to reduce token usage.

---

# FEATURE 15 — AI MODERATION

Use DeepSeek sparingly.

Only send content to AI if rule-based moderation cannot determine the result.

Detect

Spam

Scams

Duplicate Posts

Hate Speech

Pornography

Harassment

Fake Products

Abuse

Auto-hide suspicious content for admin review.

Minimize AI token consumption by:

* Using keyword filtering first.
* Caching moderation results.
* Never sending unchanged content twice.
* Limiting AI requests to new posts or edited content only.

---

# FEATURE 16 — DATABASE

Design normalized database tables with proper foreign keys and indexes.

Include tables for:

buyer_requests

request_responses

service_requests

job_posts

job_applications

forum_categories

forum_posts

forum_comments

forum_likes

forum_reports

brands

brand_followers

brand_reviews

wallets

wallet_transactions

coin_rewards

coin_rules

premium_plans

voice_call_logs

notifications

user_reputation

request_views

ad_unlock_logs

analytics_events

All APIs should support pagination, filtering, searching, sorting, and caching.

---

# FEATURE 17 — PERFORMANCE

Implement:

Lazy loading

Pagination

Infinite scrolling

Image compression

Server-side search

Caching

Background sync

Optimistic UI updates

Offline-friendly data where appropriate

---

# FEATURE 18 — SECURITY

Validate all inputs.

Protect APIs with authentication and authorization.

Prevent duplicate wallet transactions.

Prevent coin fraud.

Protect against replay attacks.

Throttle spam requests.

Log security events.

---

# FEATURE 19 — UI/UX

Maintain the current Zella design language.

Use clean Material 3 components.

Support Light and Dark themes.

Include animations for:

Coin rewards

Successful requests

Chat unlock

Voice calls

Premium upgrades

Forum interactions

Ensure responsiveness for Android, iOS, tablets, and the web.

---

# FINAL REQUIREMENTS

* Do **not** break any existing Zella functionality.
* Build this as independent modules integrated into the current application.
* Use reusable services, repositories, providers/controllers, and widgets.
* Follow clean architecture and SOLID principles.
* Add database migrations, API endpoints, validation, documentation, and comments.
* Optimize all rewarded ad triggers so they occur only at defined monetization points.
* Keep DeepSeek AI usage to an absolute minimum by prioritizing local logic, cached results, keyword matching, and rule-based systems before invoking AI.
* Deliver production-ready code that can scale to millions of users with minimal refactoring.
