data-model/src/piracyshield_data_model/reporter/model.py
2024-01-21 14:20:04 +01:00

18 lines
571 B
Python

from piracyshield_data_model.account.model import AccountModel
from piracyshield_data_model.account.role.model import AccountRoleModel
class ReporterModel(AccountModel):
"""
Reporter account data modeling class.
"""
role = AccountRoleModel.REPORTER
def __init__(self, account_id: str, name: str, email: str, password: str, confirm_password: str, is_active: bool):
"""
Extends the functionality from a general account.
"""
super().__init__(account_id, name, email, password, confirm_password, self.role, is_active)