Skip to content

A full-stack application using Spring Boot, and vanilla JavaScript. Secure, user-friendly, enabling peer-to-peer money transfers.

Notifications You must be signed in to change notification settings

Watch-Me-Fly/Pay-My-Buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pay My Buddy

MLD


MPD

CREATE DATABASE PayMyBuddy;

CREATE TABLE users (
             id INT AUTO_INCREMENT PRIMARY KEY,
             username VARCHAR(255) NOT NULL UNIQUE,
             email VARCHAR(255) NOT NULL UNIQUE,
             password VARCHAR(255) NOT NULL
);

CREATE TABLE transactions (
             id INT AUTO_INCREMENT PRIMARY KEY,
             sender_id INT NOT NULL,
             receiver_id INT NOT NULL,
             description TEXT NULL,
             amount DECIMAL(10,2) NOT NULL,
             FOREIGN KEY (sender_id) REFERENCES users(id),
             FOREIGN KEY (receiver_id) REFERENCES users(id)
);

CREATE TABLE user_connections (
             user_id INT NOT NULL,
             connection_id INT NOT NULL,
             PRIMARY KEY (user_id, connection_id),
             FOREIGN KEY (user_id) REFERENCES users(id),
             FOREIGN KEY (connection_id) REFERENCES users(id)
);

About

A full-stack application using Spring Boot, and vanilla JavaScript. Secure, user-friendly, enabling peer-to-peer money transfers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published