WMGZON/models/users/user.py

26 lines
657 B
Python
Raw Normal View History

from abc import ABC, abstractmethod
class User(ABC):
""" Functional Class constructor to initialise all properties in the base object
with a value """
def __init__(self, id: int, username: str, email: str, firstname: str,
lastname: str, phone: str, password: str, role: str):
self.id = id
self.username = username
self.email = email
self.firstName = firstname
self.lastName = lastname
self.phone = phone
self.password = password
self.role= role
@abstractmethod
2023-12-31 19:03:29 +00:00
def login(self):
pass
@abstractmethod
2023-12-31 19:03:29 +00:00
def signup(self):
pass