Refactor: deplacer backend dans apps/backend

This commit is contained in:
Giovanni committed 2026-10-03 12:17:10 +02:00
1 parent ca3de277b4
commit 357b47bd61
18 files changed
+3 -3

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from app.database import Base
from app.models.project_skill import project_skills
class Skill(Base):
__tablename__ = "skills"
id = Column(Integer, primary_key=True, index=True)
name = Column(
String(255),
nullable=False,
unique=True
)
type = Column(
String(255),
nullable=False
)
projects = relationship(
"Project",
secondary=project_skills,
back_populates="skills"
)