Open thiagoferreiraw opened 3 years ago
construction api rest / django rest framework vs flask / docker or docker compose / model of document swagger /types of authenticated / unit test or tdd
Here's an initial proposed development plan @carv-silva. Let's discuss it on our call, and feel free to add new items as needed ;)
@carv-silva , additionally, I suggest you implement these improvements in the ttps://github.com/carv-silva/employeeLabs project so we have a better grip of a real scenario:
Department
- Instead of having the department set as an string/charfield
in the database, let's make it into a foreign key. We should have a new model called Department, with at least the fields: id, name, budget
. Feel free to add more fields 🤘
Payroll
- Let's create a model to record the employee salaries every month, so we can extract some reports. I suggest these fields to begin with, but feel free to add more: id, month, employee (fk), gross_salary, taxes, benefits, net_salary
. We can also calculate the taxes on a fixed number like 11% on top of the gross salary, for fun ;)
Employee model: We already have this, but let's add more fields, I suggest: `start_date, termination_date.
Payroll
: Let's create an endpoint to list payroll per month. Departments
: List departmentsReports
: Here we can create endpoints to list some reports based on the payroll, like: Total salary of an employee per year, total salary of a department per year and so on. Let's be creative here since reporting is crucial for most businesses.Another roadmap you can take a look: https://roadmap.sh/backend
Department modified and payroll create, doubt emerged to creating of endpoint list payroll, the main question is the list will be created with ListView
create new branch developer for pull request
Base project for discussion: https://github.com/carv-silva/employeeLabs