Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created July 28, 2014 08:36
Show Gist options
  • Save anytizer/5cdc4d0d123f888f1dcb to your computer and use it in GitHub Desktop.
Save anytizer/5cdc4d0d123f888f1dcb to your computer and use it in GitHub Desktop.
User login history
CREATE TABLE `login_histories` (
`history_id` INT(10) NOT NULL AUTO_INCREMENT,
`user_id` INT(10) NOT NULL DEFAULT '0',
`loged_on` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`timezone_offset` TIME,
`ip_isp` VARCHAR(255) NOT NULL DEFAULT '',
`ip_address` VARCHAR(255) NOT NULL DEFAULT '',
`ip_country` VARCHAR(255) NOT NULL DEFAULT '',
`ip_city` VARCHAR(255) NOT NULL DEFAULT '',
`client_browser` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`track_id`)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment