Gustavo Henrique Miranda
8d45b4361e
Update src/pilgrim/models/entry.py
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-24 23:18:34 -03:00
Gustavo Henrique Santos Souza de Miranda
3db39eac71
Fix to add a photo list to the constructor of the entry model
2025-07-24 23:13:01 -03:00
Gustavo Henrique Santos Souza de Miranda
5a28afc540
fix the entry model to not allow the title nor the date to be null
2025-07-20 17:34:57 -03:00
Gustavo Henrique Santos Souza de Miranda
06ee08b201
Fix all imports to be absolute and not relative
2025-07-20 02:46:46 -03:00
Gustavo Henrique Santos Souza de Miranda
090bbeda1a
Implemented directory management and improved TravelDiary and Photo handling logic.
...
- Added `DirectoryManager` utility for consistent directory operations.
- Introduced directory name sanitization and uniqueness enforcement for `TravelDiary`.
- Updated `TravelDiaryService` with enhanced creation, update, and deletion workflows, including filesystem management.
- Improved `PhotoService` to hash files, copy photos to specific diary directories, and manage updates safely.
- Refined error handling and cascaded changes across related entities (e.g., `Entry` relationships).
2025-07-06 01:07:25 -03:00
Gustavo Henrique Santos Souza de Miranda
56e42c51bd
Fixed the entry model to accept datetime instead of a string containing the creating date
2025-06-25 17:26:52 -03:00
Gustavo Henrique Santos Souza de Miranda
103b9a9da1
Altered the Cardinality of the foreign keys to be non-nullable
2025-06-05 22:01:54 -03:00
Gustavo Henrique Santos Souza de Miranda
32b8a58c3a
Made some changes to naming in both the classes and the tables of the database to conform the correct naming scheme
2025-06-05 19:59:43 -03:00
Gustavo Henrique Santos Souza de Miranda
8ad57b548f
Added the Services layer to the code to do the database operation
2025-06-05 13:28:16 -03:00
Gustavo Henrique Santos Souza de Miranda
ac29e84833
Changed the names of the files to conform the python convection and also added photo_in_entry.py to diminish the cyclic import error in pylint
2025-06-04 00:13:18 -03:00