First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
41
app/Database/DB_schema
Normal file
41
app/Database/DB_schema
Normal file
@@ -0,0 +1,41 @@
|
||||
create table countries
|
||||
(
|
||||
id INTEGER
|
||||
primary key autoincrement,
|
||||
Country text not null,
|
||||
CountryCode text not null,
|
||||
FlagURL text not null,
|
||||
Wins int default 0 not null,
|
||||
Loses int default 0 not null,
|
||||
DateCreated date,
|
||||
DateUpdated date,
|
||||
DateDeleted date
|
||||
);
|
||||
|
||||
create unique index countries_Country
|
||||
on countries (Country);
|
||||
|
||||
create unique index countries_CountryCode
|
||||
on countries (CountryCode);
|
||||
|
||||
# ---------------------------------------
|
||||
|
||||
create table users
|
||||
(
|
||||
id INTEGER
|
||||
primary key autoincrement,
|
||||
UserName text not null,
|
||||
Wins int default 0 not null,
|
||||
Loses int default 0 not null,
|
||||
IP text not null,
|
||||
City text not null,
|
||||
State text not null,
|
||||
Country text not null,
|
||||
DateCreated date,
|
||||
DateUpdated date,
|
||||
DateDeleted date
|
||||
);
|
||||
|
||||
create unique index users_UserName
|
||||
on users (UserName);
|
||||
|
||||
0
app/Database/Migrations/.gitkeep
Normal file
0
app/Database/Migrations/.gitkeep
Normal file
0
app/Database/Seeds/.gitkeep
Normal file
0
app/Database/Seeds/.gitkeep
Normal file
BIN
app/Database/game.db
Normal file
BIN
app/Database/game.db
Normal file
Binary file not shown.
Reference in New Issue
Block a user