Skip to content

Commit

Permalink
feat : 그림 경매품 게시물 Entity 추가 (#32)
Browse files Browse the repository at this point in the history
- Entity, Repository 추가
  • Loading branch information
5dongdong authored Sep 18, 2023
1 parent 7f44b48 commit 31c5a36
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package picasso.server.domain.domains.dto;

import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter @Setter
public class PictureDTO {
private Long picture_id; //그림 ID
private String pictureName; //그림 이름
private String painterName; //화가 이름
private String details; //그림 설명
private int startingPrice; //시작가격
private int incrementAmount; //최소입찰단위
private String size; //그림 사이즈
private LocalDateTime dateTime;
private String imgUrl; //그림 url
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package picasso.server.domain.domains.items;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Entity
@Getter @Setter
public class Picture {

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

private String imgUrl; //그림 url

private String pictureName; //그림 이름

private String painterName; //화가 이름

@Column(nullable = false)
private String details; //그림 설명

private int startingPrice; //시작 가격

private int incrementAmount; //최소 입찰 단위

private String size; //그림 사이즈
private LocalDateTime dateTime;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package picasso.server.domain.domains.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import picasso.server.domain.domains.items.Picture;

@Repository
public interface PictureRepository extends JpaRepository<Picture, Long>{

}

0 comments on commit 31c5a36

Please sign in to comment.