Refactor database structure and improve player handling.

Reorganized database-related code into a dedicated module, added mappings for UUID handling, and updated SQL queries for clarity. Enhanced team members API to use player data directly, ensuring consistency and better handling of UUIDs. Introduced new database table for connection settings and adjusted Gradle configurations for modularization.
This commit is contained in:
2025-04-10 01:22:19 +02:00
parent 67a3162ae3
commit d5daa8458b
17 changed files with 191 additions and 37 deletions
+8 -12
View File
@@ -65,12 +65,6 @@ paths:
$ref: "#/components/schemas/Error"
components:
schemas:
Player:
type: object
properties:
uuid:
type: string
example: 0c35e520-927e-4c6a-87ad-ff0739c22e9d
PlayerHistory:
type: object
properties:
@@ -89,19 +83,21 @@ components:
TeamMembers:
type: array
items:
$ref: '#/components/schemas/TeamMember'
TeamMember:
$ref: '#/components/schemas/Player'
Player:
type: object
properties:
name:
type: string
description: The name of the team member
group:
description: The name of the player
example: a_name
uuid:
type: string
description: The group to which the team member belongs
example: 0c35e520-927e-4c6a-87ad-ff0739c22e9d
description: The uuid of the team player
required:
- name
- group
- uuid
Error:
type: object
properties: