Create this image
- User
Create this image
Assistant
I'll create a visual ER diagram for your house rental management system. Here's the diagram in PlantUML format that you can render using any PlantUML viewer:
@startuml skinparam linetype ortho entity "User" { *user_id (PK) -- *email (UK) *password *role (tenant|owner|admin) created_at updated_at } entity "Tenant" { *user_id (PK, FK) -- *first_name *last_name *phone_number } entity "Owner" { *user_id (PK, FK) -- business_name *phone_number } entity "Admin" { *user_id (PK, FK) } entity "House" { *house_id (PK) -- *owner_id (FK) *address *price description *status (available|booked|pending|deleted) image_url created_at updated_at } entity "Booking" { *booking_id (PK) -- *tenant_id (FK) *house_id (FK) *booking_date *start_date *end_date *status (pending|confirmed|rejected) confirmation_date } ' Relationships User ||--o{ Tenant : "is a" User ||--o{ Owner : "is a" User ||--o{ Admin : "is a" Owner ||--o{ House : "owns" Tenant ||--o{ Booking : "makes" House ||--o{ Booking : "has" note right of Admin Admin can manage all entities (Users, Houses, Bookings) end note @enduml
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.