Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 931 Bytes

README.md

File metadata and controls

13 lines (13 loc) · 931 Bytes

AirBnB clone - Models

This directory contains all classes used to store information for the website.

File Structure

  • base_model.py - The BaseModel class from which future classes will be derived
  • amenity.py - contains the Amenity class, derived from BaseModel
  • city.py - contains the City class, derived from BaseModel
  • place.py - contains the Place class, derived from BaseModel
  • review.py - contains the Review class, derived from BaseModel
  • state.py - contains the State class, derived from BaseModel
  • user.py - contains the User class, derived from BaseModel
    • engine directory contains all storage classes:
      • file_storage.py - serializes/deserializes instances to/from a JSON file
      • db_storage.py - saves and loads instances to/from a MySQL database