-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement database #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR sets up database schema and JPA entity models for a bike-sharing (vlib) application. It introduces database migrations using Flyway, creates two core entity models (User and Station), and adds PostgreSQL support.
- Database schema creation with Flyway migration for users and station tables
- JPA entity models (User and Station) with corresponding Status enum
- PostgreSQL and Flyway dependencies added to the project
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| V1__Create_tables_User_and_Station.sql | Flyway migration script creating users and station tables with appropriate columns and constraints |
| application.properties | Removed application name property (likely moved to a gitignored file) |
| User.java | JPA entity representing users with email, password, status, and timestamp fields |
| Status.java | Enum defining user roles (User and Admin) |
| Station.java | JPA entity representing bike stations with location and metadata |
| pom.xml | Added PostgreSQL driver and Flyway dependencies for database migration support |
| .gitignore | Added pattern to exclude .properties files from version control |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
97f1153 to
dbf6b11
Compare
Description
Create database connection.
Add migrations files and create table user and station.
Create models User and Station.
Related Issue
Closes #4
Type of Change
How Has This Been Tested?
For migrations : Flyway
https://documentation.red-gate.com/fd/migrations-271585107.html
Checklist