source: src/main/java/com/example/moviezone/model/Discount.java@ caf3a07

Last change on this file since caf3a07 was caf3a07, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago

added models

  • Property mode set to 100644
File size: 423 bytes
Line 
1package com.example.moviezone.model;
2
3import jakarta.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import lombok.ToString;
7
8import java.time.LocalDate;
9
10@Entity
11@Getter
12@Setter
13@ToString
14@Table(name = "discounts")
15public class Discount {
16 @Id
17 @GeneratedValue(strategy = GenerationType.IDENTITY)
18 Integer id_discount;
19
20 LocalDate validity;
21
22 String code;
23 String type;
24 Integer percent;
25}
Note: See TracBrowser for help on using the repository browser.