add database scheme

This commit is contained in:
5803025009 2025-11-24 03:09:37 -05:00
parent 0d9a8aac42
commit 15b7803bc1

23
database/hitnrun.sql Normal file
View File

@ -0,0 +1,23 @@
CREATE DATABASE IF NOT EXISTS hitnrun;
USE hitnrun;
CREATE TABLE IF NOT EXISTS users (
uid INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL,
money INT NOT NULL DEFAULT 2500,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS bets (
uid int PRIMARY KEY,
bet INT NOT NULL DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS wins (
uid int PRIMARY KEY,
win INT NOT NULL DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);