Created a set of base models to begin fleshing out the data aspect of the application
This commit is contained in:
22
models/users/user.py
Normal file
22
models/users/user.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class User(ABC):
|
||||
'''
|
||||
Class constructor to instatiate the base object
|
||||
'''
|
||||
def __init__(self):
|
||||
self.id = 0
|
||||
self.username = ""
|
||||
self.email = ""
|
||||
self.firstName = ""
|
||||
self.lastName = ""
|
||||
self.phone = ""
|
||||
|
||||
@abstractmethod
|
||||
def login():
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def signup():
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user