|
Last change
on this file was 5ea00d7, checked in by Malek Alavi <malekalavi7@…>, 8 days ago |
|
Initial project upload
|
-
Property mode
set to
100644
|
|
File size:
781 bytes
|
| Line | |
|---|
| 1 | package mk.ukim.finki.wp.db.entity;
|
|---|
| 2 |
|
|---|
| 3 | import jakarta.persistence.*;
|
|---|
| 4 | import lombok.*;
|
|---|
| 5 |
|
|---|
| 6 | import java.math.BigDecimal;
|
|---|
| 7 |
|
|---|
| 8 | @Entity
|
|---|
| 9 | @Table(name = "subscription_plan")
|
|---|
| 10 | @Getter
|
|---|
| 11 | @Setter
|
|---|
| 12 | @NoArgsConstructor
|
|---|
| 13 | @AllArgsConstructor
|
|---|
| 14 | @Builder
|
|---|
| 15 | public class SubscriptionPlan {
|
|---|
| 16 |
|
|---|
| 17 | @Id
|
|---|
| 18 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|---|
| 19 | @Column(name = "plan_id")
|
|---|
| 20 | private Integer planId;
|
|---|
| 21 |
|
|---|
| 22 | @Column(nullable = false, length = 100)
|
|---|
| 23 | private String name;
|
|---|
| 24 |
|
|---|
| 25 | @Column(nullable = false, precision = 10, scale = 2)
|
|---|
| 26 | private BigDecimal price;
|
|---|
| 27 |
|
|---|
| 28 | @Column(name = "duration_months", nullable = false)
|
|---|
| 29 | private Integer durationMonths;
|
|---|
| 30 |
|
|---|
| 31 | @Column(columnDefinition = "TEXT")
|
|---|
| 32 | private String description;
|
|---|
| 33 |
|
|---|
| 34 | @Column(name = "access_type", length = 50)
|
|---|
| 35 | private String accessType;
|
|---|
| 36 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.