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:
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user