2024-01-02 22:22:14 +00:00
|
|
|
from abc import ABC
|
2023-12-31 16:27:39 +00:00
|
|
|
|
|
|
|
class User(ABC):
|
2024-01-01 23:13:09 +00:00
|
|
|
""" Functional Class constructor to initialise all properties in the base object
|
|
|
|
with a value """
|
2024-01-09 22:20:32 +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
|
2024-01-01 23:13:09 +00:00
|
|
|
self.username = username
|
2024-01-02 22:22:14 +00:00
|
|
|
self.password = password
|
2024-01-01 23:13:09 +00:00
|
|
|
self.firstName = firstname
|
|
|
|
self.lastName = lastname
|
2024-01-02 22:22:14 +00:00
|
|
|
self.email = email
|
2024-01-01 23:13:09 +00:00
|
|
|
self.phone = phone
|
|
|
|
self.role= role
|