Kelompok_13/database/hitnrun.sql
2025-11-24 03:09:37 -05:00

23 lines
582 B
SQL

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
);