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)
);
-
Notifications
You must be signed in to change notification settings - Fork 0
Watch-Me-Fly/Pay-My-Buddy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published