Skip to content

Instantly share code, notes, and snippets.

@PelnaE
Created July 27, 2012 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PelnaE/3186697 to your computer and use it in GitHub Desktop.
Save PelnaE/3186697 to your computer and use it in GitHub Desktop.
Schema of tables 'users' and 'friends'
DROP TABLE IF EXISTS `friends`;
CREATE TABLE `friends` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`invitor_id` int(11) NOT NULL,
`invited_id` int(11) NOT NULL,
`status` text NOT NULL,
`text` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`surname` text NOT NULL,
`email` text NOT NULL,
`pass` text NOT NULL,
`name` text NOT NULL,
`picture` text NOT NULL,
`gender` text NOT NULL,
`birthday_day` int(11) NOT NULL,
`birthday_month` int(11) NOT NULL,
`birthday_year` int(11) NOT NULL,
`country` text NOT NULL,
`nickname` text NOT NULL,
`about_me` text NOT NULL,
`skills` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment