initialize backend with FastAPI and Docker setup

This commit is contained in:
Giovanni committed 2026-06-03 11:35:09 +02:00
1 parent 5d724e37ab
commit 5ff02c0ff5
24 files changed
+420 -243

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
from sqlalchemy import (
Column,
Integer,
String,
ForeignKey
)
from sqlalchemy.orm import relationship
from app.database import Base
class ExperienceTask(Base):
__tablename__ = "experience_tasks"
id = Column(
Integer,
primary_key=True,
index=True
)
description = Column(
String(255),
nullable=False
)
experience_id = Column(
Integer,
ForeignKey(
"experiences.id",
ondelete="CASCADE"
),
nullable=False
)
experience = relationship(
"Experience",
back_populates="tasks"
)