2025-04-23 17:14:16 -04:00

35 lines
886 B
Java

package com.valposystems.model;
import io.quarkus.hibernate.orm.panache.PanacheEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
@Entity
@Table(name = "users")
public class User extends PanacheEntity {
public String name;
@Column(unique = true)
public String email;
public String password;
public String profilePicUrl;
public boolean notificationsEnabled;
// Constructor vacío requerido por JPA
public User() {
}
// Constructor para inicialización más sencilla
public User(String name, String email, String password, String profilePicUrl, boolean notificationsEnabled) {
this.name = name;
this.email = email;
this.password = password;
this.profilePicUrl = profilePicUrl;
this.notificationsEnabled = notificationsEnabled;
}
}