-
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
22 changed files
with
400 additions
and
28 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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/tgd/trip/attraction/domain/AttractionBookmark.java
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.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import com.tgd.trip.user.domain.User; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class AttractionBookmark extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long AttractionBookMarkId; | ||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private User user; | ||
@ManyToOne | ||
@JoinColumn(name = "attraction_id") | ||
private Attraction attraction; | ||
} |
2 changes: 1 addition & 1 deletion
2
...n/java/com/tgd/trip/attraction/Gugun.java → ...com/tgd/trip/attraction/domain/Gugun.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.tgd.trip.attraction; | ||
package com.tgd.trip.attraction.domain; | ||
|
||
import lombok.*; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...in/java/com/tgd/trip/attraction/Sido.java → .../com/tgd/trip/attraction/domain/Sido.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.tgd.trip.attraction; | ||
package com.tgd.trip.attraction.domain; | ||
|
||
import lombok.*; | ||
|
||
|
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.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import com.tgd.trip.user.domain.User; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Visited extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long visitedId; | ||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private User user; | ||
@ManyToOne | ||
@JoinColumn(name = "attraction_id") | ||
private Attraction attraction; | ||
} |
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,23 @@ | ||
package com.tgd.trip.chatting.domain; | ||
|
||
import com.tgd.trip.user.domain.ChatParticipant; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
import java.time.LocalDateTime; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Chat { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long chatId; | ||
private String content; | ||
private LocalDateTime createdAt; | ||
@ManyToOne | ||
@JoinColumn(name = "chat_participant_id") | ||
private ChatParticipant chatParticipant; | ||
} |
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,18 @@ | ||
package com.tgd.trip.chatting.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class ChatRoom extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long chatRoomId; | ||
private String title; | ||
} |
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.global; | ||
|
||
import lombok.Getter; | ||
import org.springframework.data.annotation.CreatedDate; | ||
import org.springframework.data.annotation.LastModifiedDate; | ||
import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
|
||
import javax.persistence.EntityListeners; | ||
import javax.persistence.MappedSuperclass; | ||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@MappedSuperclass | ||
@EntityListeners(AuditingEntityListener.class) | ||
public class BaseEntity { | ||
|
||
@CreatedDate | ||
private LocalDateTime createdAt; | ||
@LastModifiedDate | ||
private LocalDateTime modifiedAt; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/tgd/trip/notification/domain/Notification.java
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.notification.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import com.tgd.trip.user.domain.User; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Notification extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long notificationId; | ||
@ManyToOne | ||
@JoinColumn(name = "receiver_id") | ||
private User receiver; | ||
private String content; | ||
private Integer type; | ||
private String contentLink; | ||
} |
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,22 @@ | ||
package com.tgd.trip.photo.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import com.tgd.trip.schedule.domain.Day; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Photo extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long photoId; | ||
@ManyToOne | ||
@JoinColumn(name = "day_id") | ||
private Day day; | ||
private String imgUrl; | ||
} |
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.photo.domain; | ||
|
||
import com.tgd.trip.attraction.domain.Visited; | ||
import com.tgd.trip.global.BaseEntity; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class ProofShot extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long proofShotId; | ||
@ManyToOne | ||
@JoinColumn(name = "visited_id") | ||
private Visited visited; | ||
} |
This file was deleted.
Oops, something went wrong.
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.schedule.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import com.tgd.trip.user.domain.User; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Comment extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long commentId; | ||
private String content; | ||
@ManyToOne | ||
@JoinColumn(name = "schedule_id") | ||
private Schedule schedule; | ||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private User user; | ||
} |
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,20 @@ | ||
package com.tgd.trip.schedule.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Day extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long dayId; | ||
@ManyToOne | ||
@JoinColumn(name = "schedule_id") | ||
private Schedule schedule; | ||
} |
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,20 @@ | ||
package com.tgd.trip.schedule.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Hashtag extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long hashtagId; | ||
@ManyToOne | ||
@JoinColumn(name = "schedule_id") | ||
private Schedule schedule; | ||
} |
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.schedule.domain; | ||
|
||
import com.tgd.trip.attraction.domain.Attraction; | ||
import com.tgd.trip.global.BaseEntity; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class Memo extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long memoId; | ||
@ManyToOne | ||
@JoinColumn(name = "attraction_id") | ||
private Attraction attraction; | ||
@ManyToOne | ||
@JoinColumn(name = "day_id") | ||
private Day day; | ||
} |
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,22 @@ | ||
package com.tgd.trip.schedule.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Getter | ||
@Setter | ||
@Entity | ||
@NoArgsConstructor | ||
public class Schedule extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long scheduleId; | ||
private String title; | ||
private String content; | ||
private Long likes; | ||
private String imgUrl; | ||
private Boolean viewYn; | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/tgd/trip/schedule/domain/ScheduleBookmark.java
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.schedule.domain; | ||
|
||
import com.tgd.trip.global.BaseEntity; | ||
import com.tgd.trip.user.domain.User; | ||
import lombok.*; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public class ScheduleBookmark extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long scheduleBookmarkId; | ||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private User user; | ||
@ManyToOne | ||
@JoinColumn(name = "schedule_id") | ||
private Schedule schedule; | ||
} |
Oops, something went wrong.