add database scheme
This commit is contained in:
parent
0d9a8aac42
commit
15b7803bc1
23
database/hitnrun.sql
Normal file
23
database/hitnrun.sql
Normal 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
|
||||
);
|
||||
Loading…
x
Reference in New Issue
Block a user