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,17 @@
|
||||
package SuMoC.backend.models;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@Entity
|
||||
@Table(name = "friendships")
|
||||
public class Friendship {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
private Long userId1;
|
||||
|
||||
@Column(nullable = false)
|
||||
private Long userId2;
|
||||
}
|
||||
Reference in New Issue
Block a user