Entity With Attributes
Entity With Attributes
● 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)
● 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