Skip to content

Conversation

@SHACRAM
Copy link
Collaborator

@SHACRAM SHACRAM commented Nov 4, 2025

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

  • feat
  • fix
  • docs
  • refactor
  • chore
  • test
  • ci

How Has This Been Tested?

For migrations : Flyway
https://documentation.red-gate.com/fd/migrations-271585107.html

Checklist

  • I have followed the Conventional Commits naming rules
  • I have added tests where applicable

@SHACRAM SHACRAM added this to the v0.1.0 - MVP milestone Nov 4, 2025
Copilot AI review requested due to automatic review settings November 4, 2025 21:16
Copy link

Copilot AI left a 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.

@DCodeProg DCodeProg force-pushed the feature#4/Connect-database-and-create-tables branch from 97f1153 to dbf6b11 Compare November 12, 2025 12:33
@DCodeProg DCodeProg changed the title Feature#4/connect database and create tables feat: implement database Nov 12, 2025
@DCodeProg DCodeProg removed this from the v0.1.0 - MVP milestone Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement database and create all tables

4 participants