Skip to content

bahajyy/Django-Car-Rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

The Django project aims to create a comprehensive car rental system with three primary models: UserProfile, Car, and Client. The built-in User model is utilized for user authentication, while the Client model extends the user profile, incorporating additional details such as country and city. This one-to-one relationship between a user and a client ensures a seamless integration of user-specific information.

The UserProfile model serves as a repository for user-related data, encompassing fields like email, password, country, and city. The model's str method enhances its representation by returning the user's email.

The Car model embodies the attributes of available rental cars, encompassing brand, model, city, transmission type, deposit amount, mileage, age, cost of rental, available start date, and available end date. The transmission type field benefits from predefined choices, optimizing data consistency.

The Client model acts as an extension to the user profile, appending details specifically relevant to the car rental service, notably, country and city. This model maintains a one-to-one relationship with the built-in User model, and its str method ensures a meaningful representation by returning the associated user's username.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published