WMGZON/models/users/user.py

16 lines
528 B
Python
Raw Normal View History

2024-01-02 22:22:14 +00:00
from abc import ABC
class User(ABC):
""" Functional Class constructor to initialise all properties in the base object
with a value """
2024-01-02 22:22:14 +00:00
def __init__(self, id: int, username: str, password: str, firstname: str,
lastname: str, email: str, phone: str, role: str):
self.id = id
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
self.role= role