Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
verwerking onduidelijkheden
Browse files Browse the repository at this point in the history
  • Loading branch information
rubben-88 committed Mar 14, 2024
1 parent efc3c54 commit 4a56559
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/domain/logic/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@


def create_admin(session: Session, name: str, email: str) -> AdminDataclass:
"""
This function is meant creating a new user that is an admin. It does not change the role of an existing user.
"""
new_user: User = User(name=name, email=email)
session.add(new_user)
session.commit()
Expand Down
3 changes: 3 additions & 0 deletions backend/domain/logic/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@


def create_student(session: Session, name: str, email: str) -> StudentDataclass:
"""
This function is meant creating a new user that is a student. It does not change the role of an existing user.
"""
new_user: User = User(name=name, email=email)
session.add(new_user)
session.commit()
Expand Down
3 changes: 3 additions & 0 deletions backend/domain/logic/teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@


def create_teacher(session: Session, name: str, email: str) -> TeacherDataclass:
"""
This function is meant creating a new user that is a teacher. It does not change the role of an existing user.
"""
new_user: User = User(name=name, email=email)
session.add(new_user)
session.commit()
Expand Down

0 comments on commit 4a56559

Please sign in to comment.