diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 68a66be..3ffcb45 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,17 +4,8 @@
-
-
-
+
-
-
-
-
-
-
-
@@ -155,7 +146,15 @@
1749155713848
-
+
+
+ 1749164385581
+
+
+
+ 1749164385581
+
+
@@ -177,7 +176,8 @@
-
+
+
diff --git a/src/pilgrim/models/photo.py b/src/pilgrim/models/photo.py
index d52dca5..63e9cf4 100644
--- a/src/pilgrim/models/photo.py
+++ b/src/pilgrim/models/photo.py
@@ -1,6 +1,6 @@
from typing import Any
-from sqlalchemy import Column, Integer, String
+from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from pilgrim.models.photo_in_entry import photo_entry_association
@@ -20,6 +20,8 @@ class Photo(Base):
back_populates="photos"
)
+ fk_travel_diary_id = Column(Integer, ForeignKey("travel_diaries.id"))
+
def __init__(self, filepath, name, addition_date=None, caption=None, entries=None, **kw: Any):
super().__init__(**kw)
self.filepath = filepath