diff --git a/typings/group.py b/typings/group.py index 63a7c3f..451ca39 100644 --- a/typings/group.py +++ b/typings/group.py @@ -1,7 +1,6 @@ from typing import Optional from pydantic import BaseModel, Field from enum import Enum -from typings.user import UserPosition from bson import ObjectId @@ -11,6 +10,16 @@ class GroupType(str, Enum): group = "group" +class UserPosition(str, Enum): + student = "student" + secretary = "secretary" + department = "department" + auditor = "auditor" + admin = "admin" + system = "system" + + + class Group(BaseModel): _id: ObjectId | str name: str