diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..8324d68 --- /dev/null +++ b/models/__init__.py @@ -0,0 +1,4 @@ +from .animal import Animal +from .customer import Customer +from .employee import Employee +from .location import Location \ No newline at end of file diff --git a/models/animal.py b/models/animal.py new file mode 100644 index 0000000..b2a49d1 --- /dev/null +++ b/models/animal.py @@ -0,0 +1,14 @@ +class Animal(): + + # Class initializer. It has 5 custom parameters, with the + # special `self` parameter that every method on a class + # needs as the first parameter. + def __init__(self, id, name, breed, status, location_id, customer_id): + self.id = id + self.name = name + self.breed = breed + self.status = status + self.location_id = location_id + self.customer_id = customer_id + + # new_animal = Animal(1, "Snickers", "Dog", "Recreation", 1, 4) \ No newline at end of file diff --git a/models/customer.py b/models/customer.py new file mode 100644 index 0000000..854aaaa --- /dev/null +++ b/models/customer.py @@ -0,0 +1,6 @@ +class Customer(): + '''Factory class for customer objects''' + def __init__(self, id, name, email) -> None: + self.id = id + self.name = name + self.email = email \ No newline at end of file diff --git a/models/employee.py b/models/employee.py new file mode 100644 index 0000000..db1256e --- /dev/null +++ b/models/employee.py @@ -0,0 +1,6 @@ +class Employee(): + + def __init__(self, id, name, email): + self.id = id + self.name = name + self.email = email \ No newline at end of file diff --git a/models/location.py b/models/location.py new file mode 100644 index 0000000..bcd6b8e --- /dev/null +++ b/models/location.py @@ -0,0 +1,10 @@ +class Location(): + + def __init__(self, id, name, address): + self.id = id + self.name = name + self.address = address + + #"id": 1, + #"name": "Nashville North", + #"address": "389 Deumbrion Street, Nashville, TN, 37909" \ No newline at end of file diff --git a/views/customer_requests.py b/views/customer_requests.py index d1566be..905010f 100644 --- a/views/customer_requests.py +++ b/views/customer_requests.py @@ -3,42 +3,36 @@ CUSTOMERS = [ "id": 1, "name": "Ryan Tanay", "email": "ryan@tanay.com", - "employee": False }, { "id": 2, "name": "Emma Beaton", "email": "emma@beaton.com", - "employee": False + }, { "id": 3, "name": "Dani Adkins", "email": "dani.adkins.com", - "employee": False }, { "id": 4, "name": "Adam Oswalt", "email": "adam@oswalt.com", - "employee": False }, { "id": 5, "name": "Fletcher Bangs", "email": "flangs@bangs.com", - "employee": False }, { "id": 6, "name": "Angela Lee", "email": "lee@lee.com", - "employee": False }, { "name": "mike mike", "email": "m@m.com", - "employee": False, "id": 7 }, diff --git a/views/location_requests.py b/views/location_requests.py index 04c3730..1efbf2e 100644 --- a/views/location_requests.py +++ b/views/location_requests.py @@ -1,11 +1,13 @@ LOCATIONS = [ { "id": 1, - "name": "Nashville North" + "name": "Nashville North", + "address": "389 Deumbrion Street, Nashville, TN, 37909" }, { "id": 2, - "name": "Nashville South" + "name": "Nashville South", + "address":"1783 Thompson Lane, Nashville, TN, 37867" } , ]