Files
xxx-sphere-web/src/main/java/de/oaa/xxx/location/entity/LocationEntity.java
Mario 5ffb99c9b5
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled
Weiter an den Locations gearbeitet
2026-04-06 22:48:34 +02:00

60 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package de.oaa.xxx.location.entity;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.util.UUID;
@Getter
@Setter
@Entity
@Table(name = "location")
public class LocationEntity {
@Id
@Column
private UUID locationId;
@Column(nullable = false)
private UUID ownerId;
@Column(nullable = false, length = 200)
private String name;
@Column(columnDefinition = "TEXT")
private String description;
/** LQ-Profilbild (klein, für Listenansicht) base64 */
@Column(columnDefinition = "TEXT")
private String profilePictureLq;
/** HQ-Profilbild (max 1024×1024) base64 */
@Column(columnDefinition = "MEDIUMTEXT")
private String profilePictureHq;
@Column
private Double lat;
@Column
private Double lon;
@Column(length = 200)
private String street;
@Column(length = 200)
private String city;
/** Eigentümerschaft wurde vom Anleger bestätigt */
@Column(nullable = false, columnDefinition = "TINYINT(1) DEFAULT 0")
private boolean ownershipConfirmed = false;
@Column(nullable = false)
private LocalDateTime createdAt;
/** Virtuelle Benutzer-ID für das Nachrichtensystem (einmalig generiert, unveränderlich) */
@Column(unique = true)
private UUID virtualUserId;
}