Pingoo
USER
name: user’s name
email: user’s email
address: User's physical address (optional).
profileImagUrl: URL or path to the user's profile picture.
dateOfBirth: User's birth date.
gender: Male, Female, Other, or prefer not to say.
status: Active, Inactive, or Suspended (to manage account states).
createdAt: Timestamp for when the user account was created.
updatedAt: Timestamp for the last update to the user's account.
Role-Based Fields (Optional/Specific to UserType):
specialization (for Doctor): Specific area of medical expertise.
businessName (for HotelManager, RealEstateAgency, Vendor, etc.): Name of
the business they manage.
licenseNumber (for Doctor, RealEstateAgency): Professional or business
license details.
managerId (for Admin): ID of the admin managing this user (for hierarchy).
gstNumbet;
Security and Verification:
emailVerified: Boolean indicating if the email has been verified.
mobileVerified: Boolean indicating if the mobile number has been verified.
Password: hash password.
Preferences and Settings:
language: Preferred language for communication.
timezone: User’s timezone for scheduling and notifications.
notificationsEnabled: Boolean for enabling/disabling notifications.
Relationships:
referrerId: ID of the user who referred this user (if applicable).
organizationId: ID of the organization the user is associated with (if applicable).
Addresses:
label: Descriptive name for the address, such as "Home" or "Work".
addressLine1: Primary address line, such as the street address.
addressLine2: Optional secondary address line, like apartment or
suite details.
city: The city where the address is located.
state: The state or region where the city is located.
country: The country of the address.
postalCode: ZIP or postal code for the address.
latitude: Geo-coordinate latitude for precise location mapping.
longitude: Geo-coordinate longitude for precise location mapping.
isPrimary: Boolean indicating whether this is the user's primary
address.
Doctor
Doctor:
name: The doctor's full name.
userId: user’s primary key
mobile: Contact phone number.
specialization: Area of medical expertise (e.g., Cardiology,
Pediatrics).
licenseNumber: Unique license or registration number issued by a
medical board.
experience: Number of years of professional experience.
qualifications: A list of academic and professional qualifications.
hospitalAffiliations: List of hospitals or clinics where the doctor
practices.
consultationFee: Fee for a single consultation (optional).
availability:
o days: Days of the week available (e.g., ["Monday",
"Wednesday"]).
o timeSlots: Time ranges available for appointments (e.g., ["9:00
AM - 12:00 PM", "3:00 PM - 6:00 PM"]).
profilePicture: URL or path to the doctor's profile picture.
reviews:
o rating: Average rating from patients (e.g., 4.5).
o comments: List of patient comments or testimonials.
status: Active, Inactive, or Suspended (to manage account state).
createdAt: Timestamp for when the account was created.
updatedAt: Timestamp for the last update to the account.
Note :
(doctors can also add address like user )
(one user can handle multiple doctors account)
Real Estate Agency:
agencyName: Name of the agency.
licenseNumber: Business license or registration number.
gstNumber
servicesOffered: List of services provided (e.g., "Property Buying",
"Property Renting", "Property Selling").
imageUrl: URL or path to the agency's logo or image.
rating: Average rating from clients (e.g., 4.5).
reviews:
o rating: Average rating from patients (e.g., 4.5).
o comments: List of patient comments or testimonials.
website: URL of the agency's website (optional).
status: Active, Inactive, or Suspended (to manage account state).
createdAt: Timestamp for when the account was created.
updatedAt: Timestamp for the last update to the account.
Note :
(Real Estate Agency can also add address like user )
(one Real Estate Agency can handle multiple agent accounts)
Real Estate Agent:
name: Full name of the agent.
email: Contact email address.
mobile: Contact phone number.
agencyId: Reference to the agency the agent is associated with.
specialization: Areas of expertise (e.g., "Residential Properties",
"Commercial Properties").
experience: Number of years of professional experience.
licenseNumber: Agent's professional license or registration number.
serviceAreas: List of cities or regions the agent operates in.
profilePicture: URL or path to the agent's profile picture.
rating: Average rating from clients (e.g., 4.5).
reviews:
o rating: Average rating from patients (e.g., 4.5).
o comments: List of patient comments or testimonials.
availability:
o days: Days of the week available for meetings (e.g., ["Monday",
"Wednesday"]).
o timeSlots: Time ranges available for appointments (e.g., ["9:00
AM - 12:00 PM", "3:00 PM - 6:00 PM"]).
status: Active, Inactive, or Suspended (to manage account state).
createdAt: Timestamp for when the account was created.
updatedAt: Timestamp for the last update to the account.
Course Provider:
providerName: Name of the course provider or institution.
mobile: Contact phone number for the provider.
licenseNumber: Registration or accreditation number for the
provider.
specializations: List of focus areas or fields of education (e.g.,
"Technology", "Healthcare").
experience
profilePicture: URL or path to the provider's logo or image.
website: URL of the course provider's website (optional).
reviews:
o rating: Average rating from students or clients.
o comments: List of testimonials or feedback.
status: Active, Inactive, or Suspended (to manage account state).
createdAt: Timestamp for when the account was created.
updatedAt: Timestamp for the last update to the account.