Skip to content

Commit

Permalink
hotfix : 충돌 DB entity 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayon-Hong committed Mar 5, 2024
1 parent 2bfef61 commit b138681
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class Country {

@Id
@Column(name = "id", unique = true, nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

private String nation;
Expand All @@ -27,7 +27,13 @@ public class Country {

private String imageUrl;

@OneToMany(mappedBy = "country")
private String airportCode;

private double latitude ; // 위도

private double longitude ; // 경도

@OneToMany (mappedBy = "country")
private List<Schedule> schedules;

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class ScheduleDetail {
private String place;

private int num;

@Enumerated(EnumType.STRING)
private ScheduleType scheduleType ;

private double budget;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.isp.backend.domain.scheduleDetail.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ScheduleType {

AIRPLANE, // 비행기

HOTEL, // 호텧

PLACE, // 관광지 장소

};

0 comments on commit b138681

Please sign in to comment.