Skip to content

Commit

Permalink
Merge pull request #49 from mramitdas/48-feature-create-admin-class
Browse files Browse the repository at this point in the history
FEAT: added admin class
  • Loading branch information
mramitdas committed Feb 14, 2024
2 parents ecd3b15 + 787b0ec commit 48bb85f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/schemas/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,20 @@ class SupportPerson(BaseUser, UserPerm):
title="Support User",
description="Indicates if the user is a support person (Service Provider)",
)


class Admin(BaseUser, UserPerm):
"""
Admin class representing an admin with inherited basic user information and permissions.
Inherits from BaseUser and UserPerm classes.
Attributes:
is_admin (bool): Indicates if the user is an admin. Default is True.
"""

is_admin: bool = Field(
default=True,
title="Admin User",
description="Indicates if the user is an admin",
)

0 comments on commit 48bb85f

Please sign in to comment.