-
Notifications
You must be signed in to change notification settings - Fork 0
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
124 additions
and
20 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 |
---|---|---|
@@ -1,15 +0,0 @@ | ||
# S3 | ||
cloud: | ||
aws: | ||
s3: | ||
bucket: imagedata-ec2-pocket4cut | ||
url: https://imagedata-ec2-pocket4cut.s3.ap-northeast-2.amazonaws.com/ | ||
expTime: 900000 # 15분 | ||
credentials: | ||
access-key: AKIA5FTY6F7TUYFDUPFZ | ||
secret-key: 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 | ||
region: | ||
static: ap-northeast-2 | ||
auto: false | ||
stack: | ||
auto: false | ||
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
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
30 changes: 30 additions & 0 deletions
30
outbound/src/main/java/com/pocket/outbound/entity/album/JpaAlbumShare.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,30 @@ | ||
package com.pocket.outbound.entity.album; | ||
|
||
import com.pocket.outbound.entity.JpaUser; | ||
import jakarta.persistence.*; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@Table(name = "SHARE") | ||
@Entity | ||
@Builder | ||
@AllArgsConstructor | ||
public class JpaAlbumShare { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "album_share_id") | ||
private Long id; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "album_id") | ||
private JpaAlbum album; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private JpaUser user; | ||
} |
7 changes: 7 additions & 0 deletions
7
outbound/src/main/java/com/pocket/outbound/repository/album/AlbumShareRepository.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,7 @@ | ||
package com.pocket.outbound.repository.album; | ||
|
||
import com.pocket.outbound.entity.album.JpaAlbumShare; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AlbumShareRepository extends JpaRepository<JpaAlbumShare, Long> { | ||
} |