mirror of
https://github.com/fuckpiracyshield/data-model.git
synced 2024-05-19 21:46:18 +02:00
18 lines
571 B
Python
18 lines
571 B
Python
from piracyshield_data_model.account.model import AccountModel
|
|
from piracyshield_data_model.account.role.model import AccountRoleModel
|
|
|
|
class ProviderModel(AccountModel):
|
|
|
|
"""
|
|
Provider account data modeling class.
|
|
"""
|
|
|
|
role = AccountRoleModel.PROVIDER
|
|
|
|
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)
|