0% found this document useful (0 votes)
4 views2 pages

Entity With Attributes

Uploaded by

aahilthapa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Entity With Attributes

Uploaded by

aahilthapa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

● Users

o user_id (Primary Key)


o name
o email
o phone_number
o address
o role (seeker/provider)

● Service Provider Profiles


o provider_id (Foreign Key from Users)
o service_type (e.g., plumbing, electrical work, cleaning, carpenter, housekeeper, Pest
Control)
o bio (description of expertise and experience)
o hourly_rate (optional, if applicable)
o skills (list of skills or certifications)
o service_area (location or range of service area)

● Service Seeker Profiles


o seeker_id (Foreign Key from Users)
o preferred_service_type (e.g., cleaning, repairs)
o location_preference (optional - preferred location for services)

● Service Postings
o posting_id (Primary Key)
o seeker_id (Foreign Key from Users)
o service_type (e.g., plumbing, electrician)
o description (detailed job description)
o budget (optional; range or fixed)
o deadline (optional)
o location (where the service is required)
o status (open/in-progress/closed)

● Service Posting Bids


o bid_id (Primary Key)
o posting_id (Foreign Key from Service Postings)
o provider_id (Foreign Key from Service Providers)
o bid_amount (proposed price)
o estimated_time (time required to complete the job)
o message (optional, explanation from provider)
o status (accepted/rejected/pending)

● Bids
o bid_id (Primary Key)
o posting_id (Foreign Key from Service Postings)
o provider_id (Foreign Key from Service Providers)
o bid_amount (monetary bid)
o time_estimation (estimated hours or days)
o provider_message (optional message from the provider to the seeker)
o status (accepted/rejected)
● Reviews
o review_id (Primary Key)
o reviewer_id (Foreign Key from Users)
o reviewee_id (Foreign Key from Users - the person being reviewed)
o service_type (type of service reviewed)
o rating (numeric value, typically 1-5 stars)
o comments (optional text feedback)

● Provider Ratings
o provider_id (Foreign Key from Service Providers)
o average_rating (calculated average of all reviews)
o total_reviews (number of reviews)
o ratings_history (stored as an array or table with date-based reviews)

● Messages
o message_id (Primary Key)
o sender_id (Foreign Key from Users)
o receiver_id (Foreign Key from Users)
o message_body
o timestamp
o status (sent/read)
o thread_id (group messages or individual)

● Transactions
o transaction_id (Primary Key)
o seeker_id (Foreign Key from Users)
o provider_id (Foreign Key from Service Providers)
o amount
o transaction_date
o payment_status (pending/paid/cancelled)
o payment_method (credit card, bank transfer, etc.)
o transaction_reference

You might also like