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

+45
View File
@@ -0,0 +1,45 @@
from sqlalchemy import (
Column,
Integer,
String
)
from sqlalchemy.orm import relationship
from app.database import Base
class Experience(Base):
__tablename__ = "experiences"
id = Column(
Integer,
primary_key=True,
index=True
)
company = Column(
String(255),
nullable=False
)
location = Column(
String(255),
nullable=False
)
duration = Column(
String(255),
nullable=False
)
role = Column(
String(255),
nullable=False
)
tasks = relationship(
"ExperienceTask",
back_populates="experience",
cascade="all, delete-orphan"
)