Compare commits

...

2 Commits

Author SHA1 Message Date
41020cdc00 fix: postgresql container volume
All checks were successful
Backend CI / Run Maven Tests (push) Successful in 28s
Reviewed-on: #7
Co-authored-by: Jarno Kiesiläinen <jarnokie@gmail.com>
Co-committed-by: Jarno Kiesiläinen <jarnokie@gmail.com>
2025-08-11 17:29:43 +00:00
b4cd05e7b2 Updated datamodel picture in the readme
Reviewed-on: #6
Co-authored-by: Jarno Kiesiläinen <jarnokie@gmail.com>
Co-committed-by: Jarno Kiesiläinen <jarnokie@gmail.com>
2025-08-07 16:36:08 +00:00
3 changed files with 26 additions and 5 deletions

View File

@@ -5,10 +5,28 @@
```mermaid ```mermaid
classDiagram classDiagram
class Activity { class Activity {
+Long id
+String name +String name
+Location location +Location location
+Int priceRange +Integer priceRange
+List~String~ tags +List~String~ tags
+String description
+LocalDateTime createdAt
+LocalDateTime updatedAt
} }
```
class Location {
+Long id
+String name
+String address
+String city
+String country
+String postalCode
+Double latitude
+Double longitude
+LocalDateTime createdAt
+LocalDateTime updatedAt
}
Activity <-- Location : belongs to
```

View File

@@ -1,5 +1,5 @@
server: server:
port: 8080 port: 8090
servlet: servlet:
context-path: /api context-path: /api
@@ -9,7 +9,7 @@ spring:
# Database Configuration # Database Configuration
datasource: datasource:
url: jdbc:postgresql://localhost:5432/vibing url: jdbc:postgresql://dind:5432/vibing
username: vibing username: vibing
password: vibing password: vibing
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver

View File

@@ -9,3 +9,6 @@ services:
POSTGRES_DB: vibing POSTGRES_DB: vibing
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: