Add OpenAPI documentation, Docker setup, and enhance user model

- Introduced OpenAPI documentation for user authentication endpoints.
- Added Docker configuration files for backend and database services.
- Enhanced User model with public and private names, visibility privacy, and friend code.
- Created Friendship, Trip, TripSegment, and Modality models for trip management.
- Updated .gitignore to exclude generated files and Maven directories.
This commit is contained in:
2025-12-02 12:16:35 +01:00
parent 6b10aafbd3
commit 0b7d0b014d
13 changed files with 399 additions and 4 deletions
@@ -0,0 +1,31 @@
package SuMoC.backend.models;
import jakarta.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "trip_segments")
public class TripSegment {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false)
private Long TripId;
@Column(nullable = false)
private Modality modality;
@Column(nullable = false)
private LocalDateTime startTime;
/**
* Distance of the segment in meters.
*/
@Column(nullable = false)
private Long distance;
}