You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
956 B
41 lines
956 B
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);
|
|
|
|
|