Skip to content

Commit 26e919f

Browse files
committed
feat: Auction 엔티티 #5
1 parent 4ee76b9 commit 26e919f

File tree

1 file changed

+50
-0
lines changed
  • src/main/java/com/windfall/domain/auction/entity

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package com.windfall.domain.auction.entity;
2+
3+
4+
5+
import com.windfall.domain.auction.enums.AuctionCategory;
6+
import com.windfall.domain.auction.enums.AuctionStatus;
7+
import com.windfall.global.entity.BaseEntity;
8+
import jakarta.persistence.*;
9+
import lombok.*;
10+
11+
import java.time.LocalDateTime;
12+
13+
@Entity
14+
@Getter
15+
@Builder
16+
@NoArgsConstructor(access = AccessLevel.PROTECTED)
17+
@AllArgsConstructor
18+
public class Auction extends BaseEntity {
19+
20+
@Column(nullable = false)
21+
private String title;
22+
23+
@Column(columnDefinition = "TEXT",nullable = false)
24+
private String description;
25+
26+
@Column(nullable = false)
27+
@Enumerated(EnumType.STRING)
28+
private AuctionCategory category;
29+
30+
@Column(nullable = false)
31+
private Long startPrice;
32+
33+
@Column(nullable = false)
34+
private Long currentPrice;
35+
36+
@Column(nullable = false)
37+
private Long stopLoss;
38+
39+
@Column(nullable = false)
40+
private Long dropAmount;
41+
42+
@Column(nullable = false)
43+
private AuctionStatus status;
44+
45+
@Column(nullable = false)
46+
private LocalDateTime startedAt;
47+
48+
@Column(nullable = false)
49+
private LocalDateTime endedAt;
50+
}

0 commit comments

Comments
 (0)