Create the users table
CREATE TABLE `bbdraft`.`bbdraft_users` (
`id` INT(11) NOT NULL,
`identifier` VARCHAR(21) NULL,
`provider` VARCHAR(6) NULL,
`display_name` VARCHAR(60) NULL,
`email` VARCHAR(60) NULL,
`league` VARCHAR(8) NULL,
`team_name` VARCHAR(30) NULL,
`pick1` INT(2) NULL,
`pick2` INT(2) NULL,
`pick3` INT(2) NULL,
`points` INT(3) NULL DEFAULT 0,
PRIMARY KEY (`id`));
Create the leagues table
CREATE TABLE `bbdraft`.`bbdraft_leagues` (
`code` VARCHAR(8) NOT NULL,
`name` VARCHAR(30) NULL,
`owner` INT(11) NULL,
PRIMARY KEY (`code`));
- Then, enter your SQL user credentials and Reddit API keys into data.php, and put that outside of the webroot (Our webroot is in /var/www/html, so we put it in /var/www/), if your directories are setup differently, you may need to change a few lines (in connection.php and classes.php) of code.