A user can have many bookings (one-to-many relationship with Booking).
A user can have many ratings (one-to-many relationship with Rating).
A user can have many payments (one-to-many relationship with Payment).
A hotel can have many rooms (one-to-many relationship with Room).
A hotel can have many ratings (one-to-many relationship with Rating).
A room belongs to one hotel (many-to-one relationship with Hotel).
A room can have many bookings (one-to-many relationship with Booking).
A booking belongs to one user (many-to-one relationship with User).
A booking belongs to one room (many-to-one relationship with Room).
A booking can have one payment (one-to-one relationship with Payment).
A payment belongs to one user (many-to-one relationship with User).
A payment belongs to one booking (many-to-one relationship with Booking).
A rating belongs to one user (many-to-one relationship with User).
A rating belongs to one hotel (many-to-one relationship with Hotel).
{ "email": "test@example.com", "password": "password123", "role": "guest" } { "email": "erick@gmail.com", "password": "micky1234", "role": "guest" }
{ "room_id": 1, "check_in_date": "2023-12-15", "check_out_date": "2023-12-20" }
{ "name": "Sunset Paradise Hotel", "location": "Watamu, Kenya", "description": "A serene hotel with stunning ocean views.", "image_url": "https://example.com/sunset_paradise.jpg" }
{ "hotel_id": 1, "room_type": "Suite", "price_per_night": 150.0, "available": true, "image_url": "https://example.com/suite.jpg" }
1:ruua rwkk zhjy gwte 2:import { useRoomContext } from "./RoomContext"; ruua rwkk zhjy gwte
https://www.loom.com/share/0f20a27d436e4fd1ab3f4185263b6112?sid=0031bd9d-8859-4575-91aa-295f8bd994f5 https://www.loom.com/share/ee8f23ffef87453da8dc0a4f9441866d?sid=897dbab3-536e-476b-8773-a7a8515c00ee
1:frontend = https://try-two-seven.vercel.app/ 2:Backend =https://try-two-5.onrender.com =https://dashboard.render.com/web/srv-cuh0m5bv2p9s73cp8sa0/deploys/dep-cuh1c79u0jms73ft0cfg