source: src/main/java/com/example/villadihovo/model/offers/Activities.java

Last change on this file was f7c05a1, checked in by Elena Shulevska <elena.shulevska@…>, 15 months ago

initial commit of the source code on origin

  • Property mode set to 100644
File size: 631 bytes
Line 
1package com.example.villadihovo.model.offers;
2
3import jakarta.persistence.*;
4import lombok.AllArgsConstructor;
5import lombok.Data;
6import lombok.NoArgsConstructor;
7
8@Data
9@AllArgsConstructor
10@NoArgsConstructor
11@Entity
12@Table(name="activities")
13public class Activities {
14
15 @Id
16 @GeneratedValue(strategy = GenerationType.IDENTITY)
17 private int activity_id;
18
19 @Column(nullable = false)
20 private String activity_type;
21
22 @Column(nullable = false)
23 private float price;
24
25 @Column(nullable = false)
26 private int number_of_interested_guests;
27
28 @Column(nullable = false)
29 private String activity_location;
30}
Note: See TracBrowser for help on using the repository browser.