PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(claude-5-sonnet)
Token size
1,456
Example input
[Website Name]: ProStay Hub [Describe what the website should achieve]: Streamline operations for independent hotels, boutique resorts, and vacation rentals through unified booking, housekeeping, guest communication, revenue optimization, and staff scheduling [Consumers / Businesses / Enterprise / Students / etc.]: Hotel owners (1โ€“500 rooms), property managers, boutique resorts, vacation rental operators, hospitality staff, corporate travel coordinators [Home / About / Services / Pricing / Blog / Contact / Dashboard / etc.]: Landing & Pricing Property Dashboard Booking Calendar & Management Guest Portal Staff Scheduling & Tasks Housekeeping & Maintenance Revenue Management Guest Communication Hub Financial Reports & Analytics Integrations Marketplace Admin Control Panel Mobile Staff App Property Settings [Authentication / Payments / Booking / Chat / CMS / Search / Forms / Analytics / etc.]: Multi-property management Channel Manager (OTA sync: Booking.com, Airbnb, Expedia) Dynamic pricing engine Guest pre-check-in & mobile key Housekeeping task automation Staff scheduling & performance tracking In-app guest messaging Payment processing & invoicing Revenue forecasting Third-party integrations (PMS API, payment gateways, email, SMS) Real-time occupancy analytics Automated guest reviews collection
Example output
## OUTPUT ### ๐Ÿ“Š SECTION 1 โ€” Business & Requirements Analysis **๐ŸŽฏ Executive Project Summary:** โ€ข ProStay Hub is an all-in-one hospitality management SaaS eliminating fragmented spreadsheets and legacy PMS systems โ€ข ๐Ÿ’ต Revenue model: Subscription tiers based on room count ($49/mo for 1โ€“10 rooms โ†’ $299/mo for 100+ rooms) + 2โ€“5% commission on upsell services (cleaning, maintenance, guest experiences) โ€ข ๐ŸŽฏ Target: $200K MRR within 24 months; 2,500+ properties; 250K+ managed rooms โ€ข ๐Ÿ”‘ Key differentiator: AI-driven dynamic pricing + automated OTA synchronization eliminates double-bookings and manual channel management (save property managers 10+ hours/week) โ€ข ๐Ÿ“ˆ Primary KPIs: ARR growth, property retention (target >95%), average revenue per property, NPS score, feature adoption rate **โœ… Functional Requirements:** โ€ข ๐Ÿ—“๏ธ Central booking calendar synced to Booking.com, Airbnb, Expedia (real-time availability sync) โ€ข ๐Ÿ’ฐ Dynamic pricing engine: Adjust rates based on demand, occupancy, seasonality, competitor pricing โ€ข ๐Ÿ‘ฅ Guest management: Pre-check-in via mobile link, digital waiver signing, guest preferences storage โ€ข ๐Ÿ”‘ Mobile key: Smartphone digital lock codes; no physical keys needed โ€ข ๐Ÿงน Housekeeping automation: Auto-assign cleaning tasks post-checkout; photo verification of room cleanliness โ€ข ๐Ÿ‘จโ€๐Ÿ’ผ Staff scheduling: Shift creation, time tracking, performance metrics, payroll integration โ€ข ๐Ÿ’ฌ Guest communication: In-app messaging, SMS alerts, automated check-in/check-out reminders โ€ข ๐Ÿ’ณ Payment processing: Secure payment capture, invoice generation, multi-currency support โ€ข ๐Ÿ“Š Analytics: Occupancy rates, ADR (Average Daily Rate), revenue forecasting, LOS (Length of Stay) analysis โ€ข ๐Ÿ”— API integrations: Stripe, Twilio, SendGrid, Google Meet (for video walkthroughs) **โš™๏ธ Technical Constraints:** โ€ข โšก Sub-500ms response times for booking calendar (PostgreSQL indexing, Redis caching of occupancy) โ€ข ๐Ÿ“ฑ Mobile-responsive staff app for field operations (housekeeping checks, maintenance reporting) โ€ข ๐ŸŒ OTA sync: Real-time channel manager updates to prevent overbooking (<5-min latency) โ€ข ๐Ÿ” Payment compliance: PCI DSS Level 1, SOC 2 Type II โ€ข ๐ŸŒ Multi-timezone support (properties across 180+ countries) โ€ข ๐Ÿ“ˆ Handle 100K+ concurrent bookings during peak seasons --- ### ๐Ÿ—๏ธ SECTION 2 โ€” System Architecture **๐ŸŽจ Frontend Architecture:** โ€ข SvelteKit (full-stack, server-side rendering for SEO + performance) โ€ข ๐ŸŽญ Component library: Skeleton UI (Svelte-native accessibility-first components) โ€ข ๐Ÿ“Š State management: SvelteStore (lightweight, built-in to Svelte) โ€ข ๐Ÿ“ˆ Charting: Chart.js + Svelte wrapper for revenue dashboards, occupancy visualizations โ€ข ๐Ÿ“ฑ Mobile staff app: Svelte Native (cross-platform iOS/Android from Svelte code) โ€ข ๐Ÿ—“๏ธ Calendar: FullCalendar.js with custom Svelte adapter for drag-drop booking management โ€ข ๐Ÿ—บ๏ธ Maps: Leaflet.js for multi-property location visualization **๐Ÿ”ง Backend Architecture:** โ€ข Python microservices (Django REST Framework): - ๐Ÿ‘ค Auth Service (JWT + OAuth2 Google/Microsoft SSO for enterprise) - ๐Ÿ“… Booking Service (reservations, cancellations, modifications) - ๐Ÿ”— Channel Manager Service (OTA synchronization: Booking.com, Airbnb, Expedia APIs) - ๐Ÿ’ฐ Revenue Manager Service (dynamic pricing engine, forecasting) - ๐Ÿ‘ฅ Guest Service (profiles, preferences, communication history) - ๐Ÿ‘จโ€๐Ÿ’ผ Staff Service (scheduling, time tracking, performance) - ๐Ÿงน Operations Service (housekeeping tasks, maintenance requests) - ๐Ÿ’ณ Payment Service (Stripe integration, invoicing, reconciliation) - ๐Ÿ“Š Analytics Service (occupancy, revenue, KPI aggregation) - ๐Ÿ“ง Notification Service (email, SMS, push notifications) - ๐Ÿ”— Integration Service (API marketplace, webhook management) โ€ข Message Queue: Celery + Redis for async tasks (channel sync, invoice generation, guest notifications) โ€ข Cache Layer: Redis for session management, frequently accessed property settings, real-time occupancy โ€ข Search: Elasticsearch for guest reservation history search, staff activity logs **๐Ÿ›๏ธ Architecture Diagram:** ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ SvelteKit Client + Mobile App โ”‚ โ”‚ (Dashboard, Calendar, Staff Tasks) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ DigitalOcean CDN โ”‚ โ”‚ (Static Assets) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ API Gateway โ”‚ โ”‚ (Rate Limiting) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ DigitalOcean App Platform โ”‚ โ”‚ (Django Microservices) โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ€ข Auth Service โ”‚ โ”‚ โ€ข Booking Service โ”‚ โ”‚ โ€ข Channel Manager โ”‚ โ”‚ โ€ข Revenue Manager โ”‚ โ”‚ โ€ข Guest Service โ”‚ โ”‚ โ€ข Staff Service โ”‚ โ”‚ โ€ข Operations Service โ”‚ โ”‚ โ€ข Payment Service โ”‚ โ”‚ โ€ข Analytics Service โ”‚ โ”‚ โ€ข Notification Service โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ PostgreSQL Managed DB โ”‚ โ”‚ Redis Cache โ”‚ โ”‚ DigitalOcean Spaces (Storage) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ External APIs โ”‚ โ”‚ โ€ข Booking.com (OTA) โ”‚ โ”‚ โ€ข Airbnb (OTA) โ”‚ โ”‚ โ€ข Expedia (OTA) โ”‚ โ”‚ โ€ข Stripe (Payments) โ”‚ โ”‚ โ€ข Twilio (SMS) โ”‚ โ”‚ โ€ข SendGrid (Email) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` **๐Ÿ“ก APIs:** โ€ข REST endpoints for property, booking, guest, staff management โ€ข GraphQL layer for complex queries (multi-property analytics, guest history) โ€ข WebSocket for real-time occupancy updates, booking notifications โ€ข Webhook endpoints for OTA updates (new bookings, cancellations from Booking.com/Airbnb) --- ### ๐ŸŽจ SECTION 3 โ€” UI/UX Design Strategy **๐ŸŽจ Design System:** โ€ข ๐Ÿ”ต Primary: Professional Blue (#2563EB) โ€ข ๐ŸŸข Success: Green (#10B981) โ€ข ๐ŸŸ  Warning: Amber (#F59E0B) โ€ข ๐Ÿ”ด Danger: Red (#EF4444) โ€ข โšช Neutral: Gray scale (#F3F4F6 light, #1F2937 dark) โ€ข ๐ŸŒ— Dark Mode: Default for evening shifts; toggle available **โœ๏ธ Typography:** โ€ข Headings: **IBM Plex Sans** (semi-bold, 24pxโ€“42px) โ€ข Body: **Inter** (regular, 13pxโ€“15px, perfect for dense information dashboards) โ€ข Data numbers: **IBM Plex Mono** (monospace, 12pxโ€“14px for occupancy, revenue figures) โ€ข Labels: **IBM Plex Sans** (medium, 12px, uppercase tracking 0.5px) **๐Ÿ“ฑ Responsive Breakpoints:** โ€ข ๐Ÿ“ฑ Mobile (320pxโ€“480px): Single-column calendar, stacked task cards, full-width buttons โ€ข ๐Ÿ“ฑ Tablet (480pxโ€“1024px): Two-column layouts (property selector + calendar) โ€ข ๐Ÿ–ฅ๏ธ Desktop (1024px+): Three-column dashboard (properties list + calendar + analytics sidebar) **โ™ฟ Accessibility:** โ€ข WCAG 2.1 AA+ compliance (contrast ratio 7:1 minimum) โ€ข Keyboard shortcuts: J/K for next/prev date, E for edit booking, A for add guest note โ€ข Screen reader optimization: Aria-labels for chart bars, skip links, semantic HTML5 โ€ข Color-blind mode: Patterns + labels (not color-only information) โ€ข Motion: Reduced motion support for animations, transitions --- ### ๐Ÿ“‚ SECTION 4 โ€” Website Structure **๐Ÿ—บ๏ธ Sitemap:** ``` / (Landing page + feature showcase) โ”œโ”€ /pricing (SaaS subscription tiers) โ”œโ”€ /signup (Property manager registration) โ”œโ”€ /app (Authenticated dashboard hub) โ”‚ โ”œโ”€ /properties (manage multiple properties) โ”‚ โ”œโ”€ /calendar (booking calendar view) โ”‚ โ”‚ โ”œโ”€ /calendar/:property_id (single property detail) โ”‚ โ”‚ โ””โ”€ /bookings/:booking_id (edit reservation) โ”‚ โ”œโ”€ /guests (guest profiles, history, preferences) โ”‚ โ”‚ โ””โ”€ /guests/:guest_id/history (booking history, communication log) โ”‚ โ”œโ”€ /staff (schedule, performance, payroll) โ”‚ โ”‚ โ”œโ”€ /staff/schedule (shift planning) โ”‚ โ”‚ โ””โ”€ /staff/:staff_id/performance (KPIs, ratings) โ”‚ โ”œโ”€ /housekeeping (cleaning tasks, inspections) โ”‚ โ”‚ โ””โ”€ /tasks/:task_id (photo verification, completion) โ”‚ โ”œโ”€ /revenue (pricing, forecasting, reports) โ”‚ โ”‚ โ”œโ”€ /pricing-rules (dynamic pricing setup) โ”‚ โ”‚ โ””โ”€ /forecasts (30/60/90 day revenue projections) โ”‚ โ”œโ”€ /channels (OTA synchronization: Booking.com, Airbnb, Expedia) โ”‚ โ”œโ”€ /communications (guest messages, automated reminders) โ”‚ โ”œโ”€ /analytics (occupancy, ADR, LOS, forecasting) โ”‚ โ”‚ โ””โ”€ /custom-reports (build custom date range reports) โ”‚ โ”œโ”€ /integrations (API marketplace, webhook setup) โ”‚ โ”œโ”€ /settings (property details, staff permissions, payment methods) โ”‚ โ””โ”€ /billing (invoice history, subscription management) โ”œโ”€ /guest-app (Public guest portal) โ”‚ โ”œโ”€ /check-in (pre-check-in, mobile key request) โ”‚ โ”œโ”€ /messages (in-app messaging with property) โ”‚ โ”œโ”€ /services (book add-on services: spa, dining, tours) โ”‚ โ””โ”€ /feedback (rate stay, leave review) โ”œโ”€ /staff-mobile (Mobile staff app) โ”‚ โ”œโ”€ /tasks (daily housekeeping checklist) โ”‚ โ”œโ”€ /maintenance (report issues with photos) โ”‚ โ””โ”€ /time-tracking (clock in/out, shifts) โ”œโ”€ /admin (Platform admin control panel) โ”‚ โ”œโ”€ /platform-analytics (all-property metrics) โ”‚ โ”œโ”€ /customers (property management, upgrades, billing) โ”‚ โ””โ”€ /support (customer tickets, feature requests) โ”œโ”€ /blog (hospitality tips, case studies, webinars) โ”œโ”€ /integrations-marketplace (partner APIs, plugins) โ””โ”€ /contact (sales, support) ``` **๐Ÿ‘ค User Flows:** โ€ข **Property Manager Onboarding:** Sign up โ†’ Add property details โ†’ Connect OTA channels (Booking.com API) โ†’ Invite staff โ†’ Configure pricing rules โ†’ Launch โ€ข **Daily Operations:** Log in โ†’ View today's bookings โ†’ Assign housekeeping tasks โ†’ Monitor check-ins โ†’ Handle guest messages โ†’ Update revenue forecast โ€ข **Guest Journey:** Receive pre-check-in link (72h before arrival) โ†’ Upload ID/payment info โ†’ Receive mobile key โ†’ Message property โ†’ Check out โ€ข **Staff Task Completion:** Receive daily cleaning checklist โ†’ Photo verification (before/after room photos) โ†’ Mark tasks complete โ†’ Submit maintenance requests --- ### โš™๏ธ SECTION 5 โ€” Backend & API Design **๐Ÿ”Œ Core REST Endpoints:** ```python # Auth POST /api/auth/register # Property manager signup POST /api/auth/login # Email/password login POST /api/auth/oauth/microsoft # Microsoft/Office 365 SSO POST /api/auth/logout # Revoke session # Properties POST /api/properties # Add new property GET /api/properties # List all properties (multi-tenant) GET /api/properties/:id # Property details (rooms, amenities) PATCH /api/properties/:id # Update property settings DELETE /api/properties/:id # Archive property # Bookings & Reservations POST /api/bookings # Create manual booking GET /api/bookings?property_id=X&date_from=2024-01-01 # Calendar data GET /api/bookings/:id # Booking details + guest info PATCH /api/bookings/:id # Modify dates, rates, guest notes DELETE /api/bookings/:id # Cancel reservation (calculate refund policy) POST /api/bookings/:id/check-in # Mark checked-in, unlock door POST /api/bookings/:id/check-out # Finalize stay, send receipt # Channel Manager (OTA Sync) POST /api/channels/connect # OAuth connect Booking.com/Airbnb GET /api/channels/status # Sync status for each OTA POST /api/channels/sync-now # Force manual sync GET /api/channels/sync-logs # View sync history, error logs # Guests GET /api/guests?property_id=X # Guest list with stay history GET /api/guests/:id/history # Previous bookings, preferences, notes POST /api/guests/:id/preferences # Store room preferences, dietary needs GET /api/guests/search?name=John # Quick guest lookup # Dynamic Pricing GET /api/pricing/recommendations # AI-suggested rates based on demand POST /api/pricing-rules # Set seasonal rates, occupancy-based pricing GET /api/pricing-rules/:id # Pricing rule details # Housekeeping & Operations GET /api/tasks/today # Daily checklist for cleaning staff POST /api/tasks/:id/complete # Mark room cleaned (with photo proof) GET /api/inspections # QA inspection history POST /api/maintenance-requests # Report broken AC, leaky faucet, etc. # Staff Management POST /api/staff # Add staff member GET /api/staff # List team members PATCH /api/staff/:id # Update role, permissions GET /api/staff/:id/schedule # View assigned shifts POST /api/staff/:id/time-tracking # Clock in/out logs # Guest Communication POST /api/messages # Send message to guest GET /api/messages?booking_id=X # Conversation history POST /api/messages/:id/read # Mark message read WebSocket /ws/messages/:booking_id # Real-time messaging # Payments & Invoicing POST /api/payments/process # Charge guest card via Stripe GET /api/invoices # Invoice history POST /api/invoices/:id/send # Email invoice to guest GET /api/accounting/revenue # Monthly revenue breakdown # Revenue Analytics GET /api/analytics/occupancy?property_id=X&period=month # Occupancy % GET /api/analytics/adr # Average Daily Rate trends GET /api/analytics/revpar # Revenue Per Available Room GET /api/forecasts/revenue # 30/60/90 day projections # Integrations GET /api/integrations/marketplace # Available partner APIs POST /api/webhooks # Subscribe to Booking.com new-booking event ``` **๐Ÿค– Dynamic Pricing Logic:** โ€ข **Inputs:** Current occupancy, length of stay, day of week, season, competitor pricing, special events (festivals, conferences), historical booking velocity โ€ข **Algorithm:** Machine learning model (scikit-learn Random Forest Regressor) - High occupancy (>80%) + low LOS โ†’ raise rates +15โ€“25% - Low occupancy (<40%) + mid-week โ†’ lower rates โ€“10โ€“20% - Special events: detect high demand days, suggest premium pricing โ€ข **Output:** Daily rate recommendations; property manager can override โ€ข **Retraining:** Weekly batch job using historical booking data **โŒ Error Handling:** โ€ข ๐Ÿ”ด 400 Bad Request: Invalid check-in date (before current date) โ€ข ๐Ÿ” 401 Unauthorized: API token expired, SSO session invalid โ€ข ๐Ÿ’ฐ 402 Payment Required: Subscription expired or payment method declined โ€ข ๐Ÿšซ 403 Forbidden: Staff member lacks permission to view guest data โ€ข โš ๏ธ 409 Conflict: Double-booking detected (room already reserved for dates) โ€ข โšก 429 Too Many Requests: Rate limit (1000 req/min per property) โ€ข ๐Ÿ“Š 503 Service Unavailable: OTA sync service offline (graceful fallback to cached data) --- ### ๐Ÿ—„๏ธ SECTION 6 โ€” Database Design **๐Ÿ“Š Core Tables:** ```sql -- Users & Tenants users ( id UUID PRIMARY KEY, email VARCHAR UNIQUE NOT NULL, password_hash VARCHAR, oauth_provider VARCHAR, oauth_id VARCHAR, first_name VARCHAR, last_name VARCHAR, role ENUM ('property_manager', 'staff', 'admin'), created_at TIMESTAMP ) -- Properties (Multi-tenant Core) properties ( id UUID PRIMARY KEY, owner_id UUID FOREIGN KEY users(id), name VARCHAR NOT NULL, country VARCHAR, city VARCHAR, address VARCHAR, total_rooms INT, amenities JSONB, check_in_time TIME, check_out_time TIME, cancellation_policy VARCHAR, currency_code VARCHAR DEFAULT 'USD', timezone VARCHAR, stripe_account_id VARCHAR (connected account), created_at TIMESTAMP ) -- Rooms/Units rooms ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), room_number VARCHAR UNIQUE NOT NULL, room_type ENUM ('single', 'double', 'suite', 'deluxe'), max_occupancy INT, amenities JSONB, base_rate_per_night DECIMAL(10,2), status ENUM ('available', 'maintenance', 'blocked'), created_at TIMESTAMP ) -- Bookings/Reservations bookings ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), room_id UUID FOREIGN KEY rooms(id), guest_id UUID FOREIGN KEY users(id), check_in_date DATE NOT NULL, check_out_date DATE NOT NULL, number_of_guests INT, nightly_rate DECIMAL(10,2), total_price DECIMAL(10,2), status ENUM ('pending', 'confirmed', 'checked_in', 'checked_out', 'cancelled'), source ENUM ('direct', 'booking.com', 'airbnb', 'expedia'), source_booking_id VARCHAR, payment_status ENUM ('unpaid', 'partial', 'paid', 'refunded'), notes TEXT, created_at TIMESTAMP, updated_at TIMESTAMP ) -- OTA Channel Connections ota_channels ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), channel_name VARCHAR ('booking.com', 'airbnb', 'expedia'), is_connected BOOLEAN, api_key VARCHAR (encrypted), last_sync TIMESTAMP, sync_status ENUM ('success', 'failed', 'in_progress'), created_at TIMESTAMP ) -- Guests guests ( id UUID PRIMARY KEY, email VARCHAR UNIQUE NOT NULL, phone VARCHAR, first_name VARCHAR NOT NULL, last_name VARCHAR NOT NULL, country_of_residence VARCHAR, id_type VARCHAR ('passport', 'driver_license', 'id_card'), id_number VARCHAR, preferences JSONB (e.g., "high floor", "extra pillows", "vegetarian meals"), total_stays INT DEFAULT 0, total_spent DECIMAL(12,2) DEFAULT 0, created_at TIMESTAMP ) -- Housekeeping Tasks housekeeping_tasks ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), room_id UUID FOREIGN KEY rooms(id), booking_id UUID FOREIGN KEY bookings(id), assigned_staff_id UUID FOREIGN KEY users(id), task_type ENUM ('turnover', 'deep_clean', 'maintenance_check'), status ENUM ('pending', 'in_progress', 'completed', 'failed_inspection'), assigned_date DATE, completed_at TIMESTAMP, before_photo_url VARCHAR, after_photo_url VARCHAR, inspection_notes TEXT, created_at TIMESTAMP ) -- Staff Scheduling staff_shifts ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), staff_id UUID FOREIGN KEY users(id), shift_type ENUM ('morning', 'afternoon', 'evening', 'overnight'), shift_date DATE, start_time TIME, end_time TIME, status ENUM ('scheduled', 'completed', 'no_show'), created_at TIMESTAMP ) -- Guest Messages messages ( id UUID PRIMARY KEY, booking_id UUID FOREIGN KEY bookings(id), sender_id UUID FOREIGN KEY users(id), sender_type ENUM ('guest', 'property_staff'), content TEXT NOT NULL, is_read BOOLEAN DEFAULT FALSE, created_at TIMESTAMP ) -- Dynamic Pricing Rules pricing_rules ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), name VARCHAR, rule_type ENUM ('seasonal', 'occupancy_based', 'length_of_stay', 'day_of_week'), date_from DATE, date_to DATE, multiplier DECIMAL(3,2) (e.g., 1.25 = +25% markup), condition JSONB (e.g., "occupancy > 80%"), active BOOLEAN, created_at TIMESTAMP ) -- Subscriptions & Billing subscriptions ( id UUID PRIMARY KEY, property_id UUID FOREIGN KEY properties(id), tier ENUM ('starter', 'professional', 'enterprise'), monthly_price DECIMAL(8,2), room_count INT, status ENUM ('active', 'paused', 'cancelled'), stripe_subscription_id VARCHAR, renewal_date DATE, created_at TIMESTAMP ) -- Invoices & Payments invoices ( id UUID PRIMARY KEY, booking_id UUID FOREIGN KEY bookings(id), property_id UUID FOREIGN KEY properties(id), amount DECIMAL(10,2), currency VARCHAR DEFAULT 'USD', status ENUM ('draft', 'sent', 'paid', 'refunded'), stripe_payment_intent_id VARCHAR, issued_at TIMESTAMP, due_at TIMESTAMP, paid_at TIMESTAMP, created_at TIMESTAMP ) -- Revenue Analytics (Materialized View for Performance) revenue_daily_summary ( property_id UUID, date DATE, occupancy_count INT, occupancy_percent DECIMAL(5,2), total_revenue DECIMAL(12,2), adr DECIMAL(8,2) (Average Daily Rate), revpar DECIMAL(8,2) (Revenue Per Available Room), PRIMARY KEY (property_id, date) ) ``` **๐Ÿ” Indexes:** โ€ข `bookings(property_id, check_in_date)` โ†’ Calendar queries โ€ข `bookings(status, check_in_date)` โ†’ Today's check-ins โ€ข `housekeeping_tasks(property_id, assigned_date)` โ†’ Staff daily checklist โ€ข `staff_shifts(staff_id, shift_date)` โ†’ Staff schedule โ€ข `messages(booking_id, created_at)` โ†’ Conversation history โ€ข `revenue_daily_summary(property_id, date)` โ†’ Analytics dashboard โ€ข Full-text index on `guests(first_name, last_name, email)` โ†’ Guest search --- ### ๐Ÿ” SECTION 7 โ€” Authentication & Security **๐Ÿ”’ Auth Flow:** โ€ข **Email/Password:** - Argon2id hashing (memory cost: 64MB, iterations: 3) - JWT tokens (HS256, 1-hour expiry) + refresh tokens (14-day rotation in httpOnly cookies) - Password reset: TOTP-based one-time links (15-min expiry), sent via email โ€ข **OAuth2 / SSO:** - Microsoft/Office 365 sign-in for enterprise customers - Google Workspace for small property teams - Auto-provisioning: Create property manager account on first SSO login โ€ข **MFA:** - TOTP (Google Authenticator, Microsoft Authenticator) for admin/property manager accounts - Biometric unlock for staff mobile app (fingerprint, face ID) **๐Ÿ‘ค Authorization (RBAC):** โ€ข **Property Manager role:** - Full access to own properties (bookings, guests, staff, billing) - Limited visibility: Cannot see other property managers' data - Can invite staff with limited permissions โ€ข **Staff roles:** - Housekeeping: View daily tasks, photo verification, maintenance reports - Front Desk: Check-in/check-out, guest communication, payment processing - General Manager: Access all staff functions + revenue reports - Admin: Platform-level access (customer management, billing, support) โ€ข **Guest role:** - Access own reservation (check-in, messages, services) - Cannot view other guests' data **๐Ÿ›ก๏ธ Data Security:** โ€ข **Transport:** HTTPS/TLS 1.3 enforced globally โ€ข **Payment Data:** PCI DSS Level 1 compliance (Stripe tokenization, no raw CC storage) โ€ข **Guest Data:** Encrypted at rest (AES-256) and in transit; GDPR Right to Deletion enforced (90-day post-account closure) โ€ข **API Keys:** Stored in environment variables, rotated quarterly โ€ข **Rate Limiting:** 1000 requests/min per property (prevent scraping) โ€ข **SQL Injection Prevention:** Parameterized ORM queries (Django ORM) โ€ข **CORS:** Restricted to authenticated webapp origin only โ€ข **Audit Logs:** Track all booking modifications, refunds, staff actions (immutable append-only log) โ€ข **Backups:** Daily encrypted backups to DigitalOcean Spaces; 30-day retention โ€ข **Data Residency:** GDPR compliance (EU customer data stored in EU data centers) --- ### โšก SECTION 8 โ€” SEO & Performance **๐ŸŽฏ Core Web Vitals Targets:** โ€ข ๐ŸŸข LCP (Largest Contentful Paint): **<2.0s** (dashboard load) โ€ข ๐ŸŸข FID (First Input Delay): **<80ms** (booking calendar interactions) โ€ข ๐ŸŸข CLS (Cumulative Layout Shift): **<0.05** (dynamic rate updates, notifications) **๐Ÿ“ˆ SEO Optimization:** โ€ข Landing page + blog: SvelteKit SSR for First Contentful Paint optimization โ€ข Dynamic meta tags: Property amenities, customer reviews, case studies โ€ข Structured data (JSON-LD): - Organization schema (company info, social profiles) - LocalBusiness schema for properties (name, address, phone, rating) - FAQPage schema (common hospitality questions) - Review schema (customer testimonials, ratings) โ€ข Sitemap.xml: Updated daily; robots.txt indexes pricing, blog, not private dashboards โ€ข Blog SEO: Topic clusters (hospitality management, revenue optimization), internal linking **โšก Performance Tactics:** โ€ข **Image Optimization:** - WebP + AVIF with JPG fallback - Responsive images: srcset for mobile/tablet/desktop - Lazy loading for below-fold property photos - Room images cached on CDN: 90-day TTL โ€ข **Calendar Optimization:** - Virtual scrolling (render only visible months) - Infinite scroll pagination for guest list - Debounced API calls on date range changes โ€ข **Caching Strategy:** - Browser cache: 24-hour TTL for property settings, staff list - Redis cache: 5-min TTL on occupancy data (invalidate post-booking) - CDN cache: 24-hour TTL for static assets (CSS, JS bundles) - Database: Materialized view for daily revenue summary (updated nightly) โ€ข **Database Optimization:** - Connection pooling: pgBouncer (30 connections) - Prepared statements to reduce query compilation - N+1 prevention: Batch load related data (booking + guest in single query) - Query timeout: 5-second limit to prevent slow queries blocking app โ€ข **DigitalOcean Scaling:** - App Platform: Auto-scaling (1โ€“10 containers) based on CPU/memory - PostgreSQL: Read replicas for analytics queries; automatic failover replica for HA - Spaces CDN: Automatically scaled to handle 10K+ concurrent downloads (photos, documents) --- ### ๐Ÿงช SECTION 9 โ€” Testing & Deployment **โœ… Testing Stack:** โ€ข **Unit Tests:** pytest (Django business logic, pricing calculations) - OTA channel sync logic (detect double-bookings, rate conflicts) - Dynamic pricing algorithm (test rate recommendations) - Refund policy calculations (test cancellation rules) โ€ข **Integration Tests:** pytest + PostgreSQL test fixtures - Create booking โ†’ trigger housekeeping task โ†’ complete task โ†’ verify room status - Connect OTA channel โ†’ fetch bookings โ†’ sync to local DB - Process payment โ†’ generate invoice โ†’ send email โ€ข **E2E Tests:** Playwright (critical user journeys) - Property manager: Sign up โ†’ add property โ†’ create booking โ†’ check-in guest - Guest: Receive pre-check-in link โ†’ upload ID โ†’ unlock door โ†’ message property - Staff: Receive daily tasks โ†’ photo verification โ†’ mark complete โ€ข **Load Testing:** k6 (Grafana Labs) - Simulate 1K concurrent property managers viewing booking calendar - OTA sync: 100 simultaneous channel syncs during peak hours - Target: Sub-500ms response times for calendar queries โ€ข **Security Testing:** - OWASP ZAP scanning (XSS, SQL injection, CSRF) - Automated credential scanning (API keys, DB passwords) - Manual penetration testing (quarterly) โ€ข **Coverage Target:** 75% for payment, booking, OTA sync logic; 50% for UI **๐Ÿš€ CI/CD Pipeline (GitHub Actions):** ```yaml on: [pull_request, push to main] jobs: test: - Lint (Ruff for Python, ESLint for Svelte) - Unit tests + coverage (pytest) - Type check (mypy for backend) - Integration tests (PostgreSQL test container) - E2E tests (Playwright) - Security scan (Snyk, OWASP ZAP) deploy: - Build SvelteKit + Django Docker images - Push to DigitalOcean Container Registry - Deploy to App Platform (blue-green) - Run smoke tests (5-min synthetic checks) - Rollback on error rate spike >5% or latency >1s deployment window: 8 minutes post-deploy: - Datadog alerting enabled - Customer notifications (status page update if downtime) ``` **๐Ÿ“‹ Production Checklist:** โ€ข โœ… SSL/TLS: Let's Encrypt auto-renewal via DigitalOcean โ€ข โœ… Database: Daily automated backups to Spaces (7-day retention) โ€ข โœ… Monitoring: - Datadog APM: Trace OTA sync latency, booking API response times - Custom dashboard: MRR, property retention, occupancy rates, API error rates - Uptime monitoring: Synthetic checks every 60s on login, booking calendar, checkout โ€ข โœ… Alerting: - PagerDuty: Error rate spike >5%, payment processing failures, OTA sync down - Slack notifications: Daily KPI digest, booking milestones, customer churn alerts โ€ข โœ… Disaster Recovery: - RTO (Recovery Time Objective): <30 minutes - RPO (Recovery Point Objective): <1 hour (hourly snapshots) - Failover: Automatic to read replica on primary DB failure โ€ข โœ… Compliance: - SOC 2 Type II audit (annually) - PCI DSS Level 1 (payment processing) - GDPR data processing agreement (EU customers) --- ### ๐Ÿ“ˆ SECTION 10 โ€” Future Scaling **๐Ÿ”ฎ Phase 2 (6 Months):** โ€ข ๐Ÿ“ฑ **Native Mobile Apps** (React Native) - Property manager: Receive booking notifications, approve guest requests on-the-go - Guest: Mobile key unlock, check-in photo, communicate with property - Staff: Offline task synchronization, QR-code room verification โ€ข ๐Ÿค– **AI Concierge Bot** - Chatbot answers guest FAQs (WiFi password, restaurant recommendations, room controls) - Powered by LLM with property-specific context (amenities, local events) - Natural language booking modifications (rephrase: "Check out one day later" โ†’ apply upsell) โ€ข ๐ŸŒŸ **Guest Upsell Services Marketplace** - In-app booking: Airport transfers, spa services, local tours, restaurant reservations - Property earns 15โ€“20% commission on upsells - Real-time availability sync with service providers โ€ข ๐Ÿ† **Multi-Property Reporting** - Consolidated dashboards for hotel chains (10+ properties) - Benchmark performance: Compare occupancy rates, ADR across properties **๐Ÿ”ฎ Phase 3 (12 Months):** โ€ข ๐ŸŽฏ **Smart Revenue Optimization** - Predictive LOS (Length of Stay) demand forecasting - Auto-adjust cancellation policies based on booking velocity - Package deals (multi-night + upsell bundles) recommendation engine โ€ข ๐ŸŒ **Global Expansion** - Multi-language UI (DE, FR, ES, ZH, JA) - Local payment gateways (Alipay, WeChat Pay, regional card schemes) - Tax compliance per jurisdiction (VAT, GST, municipal taxes) โ€ข ๐Ÿ”— **API Ecosystem** - White-label PMS for hotel chains (license software with custom branding) - Partner marketplace: Connect third-party apps (accounting, HR, maintenance software) - Webhooks for customer integrations (sync bookings to Salesforce, HubSpot) โ€ข ๐Ÿ“Š **Business Intelligence** - Historical trends: 3โ€“5 year occupancy/revenue analysis - Predictive analytics: Forecast guest churn, lifetime value - Benchmarking reports: Compare performance vs. competitive market data **๐Ÿ“ก Monitoring & Analytics:** โ€ข **Amplitude:** Feature adoption tracking - Pricing rule usage, OTA channel connections, housekeeping task completion rates - Churn analysis: Which feature gaps lead to cancellations? โ€ข **Sentry:** Error tracking + performance profiling - Real user monitoring (RUM) for guest app - Transaction waterfall for slow OTA sync operations โ€ข **Datadog:** Infrastructure + application metrics - App Platform container health, PostgreSQL query performance - Custom metrics: Booking conversion rate, guest message response time, occupancy forecast accuracy โ€ข **Custom Dashboards:** - ARR, MRR, customer acquisition cost (CAC), lifetime value (LTV) - Top 20 properties by revenue, occupancy, NPS scores - Feature adoption: % of properties using dynamic pricing, OTA sync, mobile key --- **END SAMPLE TEST #4**
๐ŸŒ€ Claude

Fullstack Website Builder

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoneyโ€‘back
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
Tested icon
Guide icon
4 examples icon
Free credits icon
This prompt acts as a Principal Full-Stack Software Architect, transforming any website idea into a complete implementation blueprint. It designs the frontend, backend, APIs, database, authentication, CMS, SEO, DevOps, testing, deployment, and scalability strategyโ€”ready for developers or AI coding assistants to build. ๐ŸŽจ UI/UX & responsive design strategy โš™๏ธ Backend & API architecture ๐Ÿ—„๏ธ Database & CMS design ๐Ÿ” Authentication & security framework ๐Ÿ“ˆ SEO & performance optimization ๐Ÿš€ Deployment
...more
Added 16 hours ago
Report
Browse Marketplace