49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
package com.valposystems.model;
|
|
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Table;
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "gym_classes")
|
|
public class GymClass extends PanacheEntity {
|
|
|
|
public String name;
|
|
|
|
public String description;
|
|
|
|
public String instructor;
|
|
|
|
public LocalDateTime startTime;
|
|
|
|
public LocalDateTime endTime;
|
|
|
|
public int maxCapacity;
|
|
|
|
public int currentBookings;
|
|
|
|
public String category;
|
|
|
|
public String imageUrl;
|
|
|
|
// Constructor vacío requerido por JPA
|
|
public GymClass() {
|
|
}
|
|
|
|
// Constructor para inicialización más sencilla
|
|
public GymClass(String name, String description, String instructor,
|
|
LocalDateTime startTime, LocalDateTime endTime,
|
|
int maxCapacity, int currentBookings,
|
|
String category, String imageUrl) {
|
|
this.name = name;
|
|
this.description = description;
|
|
this.instructor = instructor;
|
|
this.startTime = startTime;
|
|
this.endTime = endTime;
|
|
this.maxCapacity = maxCapacity;
|
|
this.currentBookings = currentBookings;
|
|
this.category = category;
|
|
this.imageUrl = imageUrl;
|
|
}
|
|
} |