Skip to content

Commit

Permalink
[DEV-000] Feed 엔티티 컬럼 타입 수정 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann authored Sep 7, 2024
1 parent 90e2050 commit 60777e1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions src/main/java/ddingdong/ddingdongBE/domain/feed/entity/Feed.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@
@Table(appliesTo = "feed")
public class Feed extends BaseEntity {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(nullable = false)
private String activityContent;
@Column(nullable = false, length = 100)
private String activityContent;

@Column(nullable = false)
private String thumbnailUrl;
@Column(nullable = false)
private String thumbnailUrl;

@Column(nullable = false)
@Enumerated(EnumType.STRING)
private FeedType feedType;
@Column(nullable = false)
@Enumerated(EnumType.STRING)
private FeedType feedType;

@ManyToOne(fetch = FetchType.LAZY)
private Club club;
@ManyToOne(fetch = FetchType.LAZY)
private Club club;

@Column(name = "deleted_at")
private LocalDateTime deletedAt;
@Column(name = "deleted_at")
private LocalDateTime deletedAt;

@Builder
private Feed(String activityContent, String thumbnailUrl, Club club, FeedType feedType) {
this.activityContent = activityContent;
this.thumbnailUrl = thumbnailUrl;
this.club = club;
this.feedType = feedType;
}
@Builder
private Feed(String activityContent, String thumbnailUrl, Club club, FeedType feedType) {
this.activityContent = activityContent;
this.thumbnailUrl = thumbnailUrl;
this.club = club;
this.feedType = feedType;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/db/migration/V4__Create_feed.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE feed (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
activity_content TEXT NOT NULL,
activity_content VARCHAR(100) NOT NULL,
thumbnail_url VARCHAR(255) NOT NULL,
feed_type VARCHAR(10) NOT NULL,
deleted_at DATETIME,
Expand Down

0 comments on commit 60777e1

Please # to comment.