WMGZON/models/users/user.py

18 lines
520 B
Python
Raw Normal View History

2024-01-02 22:22:14 +00:00
from abc import ABC
2024-01-21 22:06:06 +00:00
class User(ABC):
""" Functional Class constructor to initialise all properties in the base object
with a value """
2024-01-21 22:06:06 +00:00
def __init__(self, username: str, password: str, firstname: str,
2024-01-02 22:22:14 +00:00
lastname: str, email: str, phone: str, role: str):
2024-01-09 22:20:32 +00:00
self.id = 0
self.username = username
2024-01-02 22:22:14 +00:00
self.password = password
self.firstName = firstname
self.lastName = lastname
2024-01-02 22:22:14 +00:00
self.email = email
self.phone = phone
2024-01-21 22:06:06 +00:00
self.role = role