mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-24 16:54:23 +01:00
Merge branch 'dev' into feature/tagging-project-story
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Story" ADD COLUMN "project_id" INTEGER;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Story" ADD CONSTRAINT "Story_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "Project"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
@@ -162,6 +162,7 @@ model Project {
|
||||
members ProjectMember[]
|
||||
recruit_roles ProjectRecruitRoles[]
|
||||
tournaments TournamentProject[]
|
||||
stories Story[]
|
||||
}
|
||||
|
||||
model ProjectRecruitRoles {
|
||||
@@ -222,6 +223,9 @@ model Story {
|
||||
user_id Int?
|
||||
|
||||
comments PostComment[] @relation("StoryComment")
|
||||
|
||||
project Project? @relation(fields: [project_id], references: [id])
|
||||
project_id Int?
|
||||
}
|
||||
|
||||
model Question {
|
||||
|
||||
Reference in New Issue
Block a user