Skip to content

Commit

Permalink
Merge branch 'backend/feature/8'
Browse files Browse the repository at this point in the history
  • Loading branch information
yo0oni committed Jan 10, 2024
2 parents 54b78db + cac02c1 commit c81da5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class MySchedules extends BaseEntity {
@JoinColumn(name = "user_id", nullable = false)
private Users users;

@Builder.Default
@OneToMany(mappedBy = "mySchedules", cascade = CascadeType.ALL, orphanRemoval = true)
private List<TravelPlaces> travelPlaces = new ArrayList<>();

Expand All @@ -45,6 +46,7 @@ public class MySchedules extends BaseEntity {
@Column(name = "total_price")
private double totalPrice ;

@Builder.Default
@Column(name = "activated", nullable = false)
private boolean activated = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class Users extends BaseEntity {
@Column(name = "login_type")
private String loginType ;

@Builder.Default
@Column(name = "activated", nullable = false)
private boolean activated = true;
}

0 comments on commit c81da5c

Please sign in to comment.