-
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.
feat : username, updateAt 컬럼 추가 in templatePreviewDto, BaseBlueprint 상속
- Loading branch information
Showing
7 changed files
with
108 additions
and
67 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
src/main/java/com/kumofactory/cloud/blueprint/domain/BaseBluePrint.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,48 @@ | ||
package com.kumofactory.cloud.blueprint.domain; | ||
|
||
import com.kumofactory.cloud.member.domain.Member; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import org.hibernate.annotations.CreationTimestamp; | ||
import org.hibernate.annotations.UpdateTimestamp; | ||
|
||
import javax.persistence.*; | ||
import java.util.Date; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@Entity | ||
public class BaseBluePrint { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@CreationTimestamp | ||
private Date created_at; | ||
|
||
@UpdateTimestamp | ||
private Date updated_at; | ||
|
||
private String uuid; // Client 에서 생성하는 uuid | ||
|
||
private String name; // 블루프린트 이름 | ||
|
||
private String description; // 블루프린트 설명 | ||
|
||
private String keyName; // 썸네일 이미지 파일명 (S3) | ||
|
||
@Column(columnDefinition = "int default 0") | ||
private Integer downloadCount; // 다운로드 횟수 | ||
|
||
@Enumerated(EnumType.STRING) | ||
private ProvisionStatus status; // 배포 상태 | ||
|
||
@Enumerated(EnumType.STRING) | ||
private BluePrintScope scope; // 블루프린트 공개 범위 | ||
|
||
@ManyToOne | ||
private Member member; | ||
|
||
} |
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
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
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