[FIX] Default値設定及び必要ないカラムを削除しました。

This commit is contained in:
s-choi
2026-09-29 09:44:18 +09:00
parent 65282cdcb2
commit b09fd95c31
2 changed files with 3 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ public class GoalModel {
goalModel.getTargetAmount(), goalModel.getTargetAmount(),
goalModel.getDeadline(), goalModel.getDeadline(),
0, 0,
userEntity, 0); userEntity);
} }
public static GoalModel convertFrom(GoalForm goalForm) { public static GoalModel convertFrom(GoalForm goalForm) {

View File

@@ -29,10 +29,10 @@ public class GoalEntity {
private Long goalId; private Long goalId;
@Column(name = "goal_title", nullable = true) @Column(name = "goal_title", nullable = true)
private String goalTitle; private String goalTitle = "名前を設定してください";
@Column(name = "goal_subtitle", nullable = true) @Column(name = "goal_subtitle", nullable = true)
private String goalSubtitle; private String goalSubtitle = "説明を書いてください";
@Column(name = "target_amount", nullable = true) @Column(name = "target_amount", nullable = true)
private Integer targetAmount; private Integer targetAmount;
@@ -47,6 +47,4 @@ public class GoalEntity {
@JoinColumn(name = "user_id") @JoinColumn(name = "user_id")
private UserEntity userEntity; private UserEntity userEntity;
private Integer deleteFlag;
} }