-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.tgd.trip.attraction; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
public class Attraction { | ||
|
||
@Id | ||
private Long id; | ||
@Column(columnDefinition = "TEXT") | ||
private String title; | ||
private String overview; | ||
private String address; | ||
private String zipCode; | ||
private String tel; | ||
private String imgUrl; | ||
private Double latitude; | ||
private Double longitude; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.tgd.trip.attraction; | ||
|
||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Gugun { | ||
|
||
@Id | ||
private Long code; | ||
private String name; | ||
@ManyToOne | ||
@JoinColumn(name = "sido_code") | ||
private Sido sido; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.tgd.trip.attraction; | ||
|
||
import lombok.*; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Sido { | ||
|
||
@Id | ||
private Long code; | ||
private String name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.tgd.trip.schedule; | ||
|
||
import lombok.*; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
|
||
@Getter | ||
@Setter | ||
@Entity | ||
@NoArgsConstructor | ||
public class Schedule { | ||
|
||
@Id | ||
private Long scheduleId; | ||
private String title; | ||
private String content; | ||
private Long like; | ||
private String imgUrl; | ||
private boolean viewYn; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.tgd.trip.user; | ||
|
||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
import java.time.LocalDate; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class User { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long userId; | ||
private String password; | ||
private String name; | ||
private String email; | ||
private String role; | ||
private String status; | ||
private String provider; | ||
private String providerId; | ||
private LocalDate birth; | ||
} |