Database reltaions

Open
#64 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@zakriya057 is already working on this.

Since Dec 9, 2025.

Assessment

This issue has not been assessed yet.

Description

In the current branch presentation-fixes i "fixed" the retrieval of Petitions by changing student_email ---> student_username in the Petition model and also in the Employee model. In the course of this change I also changed the "get_employee_by_mail" function to
"get_employee_by_username". However we do not save the username in the Employee model. All these fixes slowly tend to become convoluted!

Do get this sorted we need to tackle this in a more structured way:

  1. Make schematic of models.
  2. Make Connections clear.
  3. Find the best fields to indicate the relation between models.
Dominant language
Python
Stars
0
Forks
0
Avg merge
29m
Merged PRs (30d)
14

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClockGU/clockwork-backend

All issues in ClockGU/clockwork-backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.