ktsn-ud commited on
Commit
dafa8fa
·
1 Parent(s): 94a52c6

更新しきれていなかったスキーマを更新

Browse files
Files changed (2) hide show
  1. app/repositories/query.sql +1 -1
  2. schemas/projects.py +10 -10
app/repositories/query.sql CHANGED
@@ -11,7 +11,7 @@ SELECT
11
  texts.description AS "description",
12
  texts.prSummary AS "prSummary",
13
  texts.prDetail AS "prDetail",
14
- COALESCE(visitor_note.note, '[]'::jsonb) AS "note",
15
  COALESCE(images."images", '[]'::jsonb) AS "images",
16
  COALESCE(sns.urls, '[]'::jsonb) AS "urls"
17
 
 
11
  texts.description AS "description",
12
  texts.prSummary AS "prSummary",
13
  texts.prDetail AS "prDetail",
14
+ COALESCE(visitor_note.note, '[]'::jsonb) AS "notes",
15
  COALESCE(images."images", '[]'::jsonb) AS "images",
16
  COALESCE(sns.urls, '[]'::jsonb) AS "urls"
17
 
schemas/projects.py CHANGED
@@ -38,8 +38,8 @@ class Project(BaseModel):
38
  - `thirdDay`: 3日目の実施有無
39
  - `location`: 実施場所
40
  - `description`: 企画内容
41
- - `prComment`: PRコメント
42
- - `prCommentLong`: PRコメント(詳細ページ用)
43
  - `notes`: 注意事項
44
  - `images`: 画像情報
45
  - `urls`: 各種URL情報
@@ -57,8 +57,8 @@ class Project(BaseModel):
57
  thirdDay: bool
58
  location: str
59
  description: str
60
- prComment: str
61
- prCommentLong: Optional[str]
62
  notes: Optional[list[str]]
63
  images: list[Image]
64
  urls: list[Sns]
@@ -75,7 +75,7 @@ class ProjectSummary(BaseModel):
75
  - `day3`: 3日目の実施有無
76
  - `place`: 実施場所
77
  - `description`: 企画内容
78
- - `prComment`: PRコメント
79
  - `notes`: 注意事項
80
  - `image`: 画像情報
81
  """
@@ -91,7 +91,7 @@ class ProjectSummary(BaseModel):
91
  thirdDay: bool
92
  location: str
93
  description: str
94
- prComment: str
95
  notes: Optional[list[str]]
96
  image: Image
97
 
@@ -107,8 +107,8 @@ class ProjectDetail(BaseModel):
107
  - `thirdDay`: 3日目の実施有無
108
  - `location`: 実施場所
109
  - `description`: 企画内容
110
- - `prComment`: PRコメント
111
- - `prCommentLong`: PRコメント(詳細ページ用)
112
  - `notes`: 注意事項
113
  - `images`: 画像情報
114
  - `urls`: 各種URL情報
@@ -125,8 +125,8 @@ class ProjectDetail(BaseModel):
125
  thirdDay: bool
126
  location: str
127
  description: str
128
- prComment: str
129
- prCommentLong: Optional[str]
130
  notes: Optional[list[str]]
131
  images: list[Image]
132
  urls: list[Sns]
 
38
  - `thirdDay`: 3日目の実施有無
39
  - `location`: 実施場所
40
  - `description`: 企画内容
41
+ - `prSummary`: PRコメント
42
+ - `prDetail`: PRコメント(詳細ページ用)
43
  - `notes`: 注意事項
44
  - `images`: 画像情報
45
  - `urls`: 各種URL情報
 
57
  thirdDay: bool
58
  location: str
59
  description: str
60
+ prSummary: str
61
+ prDetail: Optional[str]
62
  notes: Optional[list[str]]
63
  images: list[Image]
64
  urls: list[Sns]
 
75
  - `day3`: 3日目の実施有無
76
  - `place`: 実施場所
77
  - `description`: 企画内容
78
+ - `prSummary`: PRコメント
79
  - `notes`: 注意事項
80
  - `image`: 画像情報
81
  """
 
91
  thirdDay: bool
92
  location: str
93
  description: str
94
+ prSummary: str
95
  notes: Optional[list[str]]
96
  image: Image
97
 
 
107
  - `thirdDay`: 3日目の実施有無
108
  - `location`: 実施場所
109
  - `description`: 企画内容
110
+ - `prSummary`: PRコメント
111
+ - `prDetail`: PRコメント(詳細ページ用)
112
  - `notes`: 注意事項
113
  - `images`: 画像情報
114
  - `urls`: 各種URL情報
 
125
  thirdDay: bool
126
  location: str
127
  description: str
128
+ prSummary: str
129
+ prDetail: Optional[str]
130
  notes: Optional[list[str]]
131
  images: list[Image]
132
  urls: list[Sns]