File History: src/main/java/com/paymentlink/model/entity/Product.java

← View file content

File Content at Commit 690c1f6

1 package com.paymentlink.model.entity;
2
3 import jakarta.persistence.*;
4 import lombok.AllArgsConstructor;
5 import lombok.Builder;
6 import lombok.Data;
7 import lombok.NoArgsConstructor;
8 import org.hibernate.annotations.CreationTimestamp;
9 import org.hibernate.annotations.UpdateTimestamp;
10
11 import java.time.LocalDateTime;
12
13 @Entity
14 @Table(name = "products")
15 @Data
16 @NoArgsConstructor
17 @AllArgsConstructor
18 @Builder
19 public class Product {
20
21 @Id
22 @GeneratedValue(strategy = GenerationType.IDENTITY)
23 private Long id;
24
25 @Column(nullable = false)
26 private String name;
27
28 @Column(columnDefinition = "TEXT")
29 private String description;
30
31 @Column(nullable = false)
32 private Long price; // Price in cents
33
34 @Column(nullable = false, length = 3)
35 private String currency;
36
37 private String image;
38
39 private Integer stock; // null means unlimited
40
41 private String category;
42
43 @Column(name = "tax_included")
44 private Boolean taxIncluded;
45
46 @Column(name = "node_id")
47 private String nodeId;
48
49 @Column(name = "available_in_countries", columnDefinition = "TEXT")
50 private String availableInCountries; // JSON array: ["US", "CA", "GB"]. If null, available in all enabled regions
51
52 @CreationTimestamp
53 @Column(name = "created_at", updatable = false)
54 private LocalDateTime createdAt;
55
56 @UpdateTimestamp
57 @Column(name = "updated_at")
58 private LocalDateTime updatedAt;
59 }
60
61

Commits

Commit Author Date Message File SHA Actions
f0438c2 <f69e50@finnacloud.com> 1766443042 +0300 12/22/2025, 10:37:22 PM increment once more 31ec215 View
188fc92 <f69e50@finnacloud.com> 1766442998 +0300 12/22/2025, 10:36:38 PM increment 31ec215 View
4617f76 <f69e50@finnacloud.com> 1766442953 +0300 12/22/2025, 10:35:53 PM rename branch from main to master oops 31ec215 View
e6d1548 <f69e50@finnacloud.com> 1766442769 +0300 12/22/2025, 10:32:49 PM add initial test workflow file 31ec215 View
9c24ca4 <f69e50@finnacloud.com> 1766442705 +0300 12/22/2025, 10:31:45 PM add CI configuration and test script for Jenkins build 31ec215 View
690c1f6 <f69e50@finnacloud.com> 1766368110 +0300 12/22/2025, 1:48:30 AM initialize backend structure with controllers, DTOs, and configuration files 31ec215 Hide