1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00
tux/prisma
kzndotsh 732f353a36 refactor(schema.prisma): rename enum values HACK_BAN and TEMP_BAN to HACKBAN and TEMPBAN for consistency
feat(schema.prisma): add case_status field to Case model to track case status
fix(schema.prisma): change case_number and note_number types from Int to BigInt to handle larger numbers

docs(case.py): add docstrings to methods in CaseController class to improve code readability and provide detailed information about the methods' functionality and parameters
refactor(case.py): remove get_all_cases and get_case_by_id methods from CaseController class as they were not being used, reducing unnecessary code
feat(case.py): import logger from loguru for better logging capabilities
feat(case.py): import CaseWhereInput from prisma.types to handle case queries more efficiently

refactor(case.py): simplify case retrieval methods in CaseController

- Replace multiple specific case retrieval methods with more general methods that accept options for filtering.
- This reduces code duplication and improves maintainability.
- Add docstrings to new methods to improve code readability and provide usage information.

refactor: simplify and optimize case retrieval methods in the database layer
feat: add update_case method to allow case reason and status modification
feat: add delete_case_by_number method to allow case deletion by its number
2024-07-22 16:39:18 +00:00
..
schema.prisma refactor(schema.prisma): rename enum values HACK_BAN and TEMP_BAN to HACKBAN and TEMPBAN for consistency 2024-07-22 16:39:18 +00:00