initialize backend with FastAPI and Docker setup
This commit is contained in:
1 parent
5d724e37ab
commit
5ff02c0ff5
24 files changed
+420
-243
No files matched your search
@@ -0,0 +1,22 @@
|
||||
from sqlalchemy import Table, Column, Integer, ForeignKey
|
||||
|
||||
from app.database import Base
|
||||
|
||||
project_skills = Table(
|
||||
"project_skills",
|
||||
Base.metadata,
|
||||
|
||||
Column(
|
||||
"project_id",
|
||||
Integer,
|
||||
ForeignKey("projects.id", ondelete="CASCADE"),
|
||||
primary_key=True
|
||||
),
|
||||
|
||||
Column(
|
||||
"skill_id",
|
||||
Integer,
|
||||
ForeignKey("skills.id", ondelete="CASCADE"),
|
||||
primary_key=True
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user