Skip to content

Commit 7156d26

Browse files
committed
[Feat] : Withdrawal 엔티티 생성
1 parent 47ceb37 commit 7156d26

3 files changed

Lines changed: 50 additions & 1 deletion

File tree

src/main/java/com/potato/balbambalbam/data/entity/CustomCard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@Getter
1212
@Setter
1313
@NoArgsConstructor
14-
public class CustomCard {
14+
public class CustomCard {
1515
@Id
1616
@Column(name = "id")
1717
@GeneratedValue(strategy = GenerationType.IDENTITY)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.potato.balbambalbam.data.entity;
2+
3+
import jakarta.persistence.*;
4+
import lombok.Getter;
5+
import lombok.Setter;
6+
7+
import java.time.LocalDateTime;
8+
9+
@Entity(name = "withdrawal")
10+
@Getter
11+
@Setter
12+
public class Withdrawal {
13+
14+
@Id
15+
@Column(name = "id")
16+
@GeneratedValue(strategy = GenerationType.IDENTITY)
17+
private long id;
18+
19+
@Column(name = "user_id", nullable = false)
20+
private long userId;
21+
22+
@Column(name = "code", nullable = false)
23+
private int code;
24+
25+
@Column(name = "details")
26+
private String details;
27+
28+
@Column(name = "created_at", nullable = false)
29+
private LocalDateTime createdAt;
30+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.potato.balbambalbam.data.entity;
2+
3+
import jakarta.persistence.*;
4+
import lombok.Getter;
5+
import lombok.Setter;
6+
7+
@Entity(name = "withdrawal_code")
8+
@Getter
9+
@Setter
10+
public class WithdrawalCode {
11+
12+
@Id
13+
@Column(name = "id")
14+
@GeneratedValue(strategy = GenerationType.IDENTITY)
15+
private int code;
16+
17+
@Column(name = "description", nullable = false)
18+
private String description;
19+
}

0 commit comments

Comments
 (0)