Removed Tests from GIT.
Updated DB Schema with current table structure. Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
@@ -1,24 +1,26 @@
|
||||
create table countries
|
||||
create table Log
|
||||
(
|
||||
id INTEGER
|
||||
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
|
||||
IP text not null,
|
||||
City text not null,
|
||||
State text not null,
|
||||
Country text not null,
|
||||
DateTime date
|
||||
);
|
||||
|
||||
create unique index countries_Country
|
||||
on countries (Country);
|
||||
|
||||
create unique index countries_CountryCode
|
||||
on countries (CountryCode);
|
||||
|
||||
# ---------------------------------------
|
||||
create table plays
|
||||
(
|
||||
id INTEGER
|
||||
primary key autoincrement,
|
||||
UserID text not null,
|
||||
UserName text not null,
|
||||
IP text not null,
|
||||
PlayerPick text not null,
|
||||
ComputerPick text not null,
|
||||
Result text not null,
|
||||
DateTime date
|
||||
);
|
||||
|
||||
create table users
|
||||
(
|
||||
@@ -27,10 +29,13 @@ create table users
|
||||
UserName text not null,
|
||||
Wins int default 0 not null,
|
||||
Loses int default 0 not null,
|
||||
Ties int default 0 not null,
|
||||
IP text not null,
|
||||
City text not null,
|
||||
State text not null,
|
||||
Country text not null,
|
||||
CountryCode text not null,
|
||||
FlagURL text not null,
|
||||
DateCreated date,
|
||||
DateUpdated date,
|
||||
DateDeleted date
|
||||
|
||||
Reference in New Issue
Block a user