Skip to content

Commit

Permalink
fix: QuestionId を nullable にする
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Sep 6, 2024
1 parent 865e85b commit 8bb05b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/models/form.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ enum QuestionType {
}

model Question {
id: uint32;
/**
* id は送信側(frontend)ではなく、受信側(backend)で生成するため nullable である。
* しかし、更新時に限っては id が必要である。
*/
id?: uint32;

title: string;
description: string;
question_type: QuestionType;
Expand Down

0 comments on commit 8bb05b1

Please sign in to comment.