prepare to merge between dev-backend-tobuys

dev-backend-stocks
Amagasu 5 months ago
parent db72254b5f
commit 7f0c86bc3f
  1. 4
      backend/src/main/java/com/example/todoapp/dto/StockDTO.java
  2. 4
      backend/src/main/java/com/example/todoapp/model/Stocks.java

@ -17,8 +17,8 @@ import java.time.LocalDate;
@Data @Data
public class StockDTO { public class StockDTO {
private int stock_id; private Long stock_id;
private int stuff_id; private Long stuff_id;
private Long user_id; private Long user_id;
private int amount; private int amount;
private int price; private int price;

@ -39,7 +39,7 @@ public class Stocks {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
private int stock_id ; private Long stock_id ;
/** /**
@ -52,7 +52,7 @@ public class Stocks {
referencedColumnName = "stuff_id", referencedColumnName = "stuff_id",
nullable = false nullable = false
) )
private int stuff_id; private Long stuff_id;
/** /**

Loading…
Cancel
Save