Skip to content

Commit

Permalink
refact: update column's length condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-soo708 committed Jan 8, 2025
1 parent cc74fc6 commit b6dcffe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ object SignupMapper {
gender = req.gender
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ class ApplyMethodEntity (
@Column(name = "id")
val id: Long,

@Column(name = "phone_num", length = 11)
@Column(name = "phone_num", length = 50)
val phoneNum: String,

@Column(name = "form_url")
@Column(name = "form_url", length = 100)
val formUrl: String,

// TODO: content 길이 제한
@Column(name = "content", nullable = false)
@Column(name = "content", nullable = false, length = 200)
val content: String,
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,16 @@ class ExperimentPostEntity(
@Column(name = "views")
val views: Int,

// TODO: title 길이 제한
@Column(name = "title")
@Column(name = "title", nullable = false, length = 70)
val title: String,

// TODO: content 길이 제한
@Column(name = "content")
@Column(name = "content", nullable = false, length = 5000)
val content: String,

// TODO: researcherName 길이 제한
@Column(name = "researcher_name", nullable = false)
@Column(name = "researcher_name", nullable = false, length = 100)
val researcherName: String,

// TODO: reward 길이 제한
@Column(name = "reward", nullable = false)
@Column(name = "reward", nullable = false, length = 170)
val reward: String,

@Column(name = "start_date")
Expand All @@ -70,8 +66,7 @@ class ExperimentPostEntity(
@Column(name = "area", nullable = false)
val area: Area,

// TODO: detailedAddress 길이 제한
@Column(name = "detailed_address", nullable = false)
@Column(name = "detailed_address", length = 70)
val detailedAddress: String,

@Column(name = "alarm_agree", nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ class TargetGroupEntity(
val endAge: Int,

@Enumerated(EnumType.STRING)
@Column(name = "gender_type", columnDefinition = "VARCHAR(10)")
@Column(name = "gender_type", nullable = false)
val genderType: GenderType,

// TODO: other_condition 길이 제한
@Column(name = "other_condition")
@Column(name = "other_condition", length = 300)
val otherCondition: String,
) {
}

0 comments on commit b6dcffe

Please sign in to comment.