Created
September 12, 2011 02:32
-
-
Save sergiopvilar/1210471 to your computer and use it in GitHub Desktop.
Tabelas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `publications` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`uid` varchar(120) NOT NULL, | |
`account_id` int(11) NOT NULL, | |
`message` text NOT NULL, | |
`link` text NOT NULL, | |
`date` datetime NOT NULL, | |
`status` int(11) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `usuarios` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) NOT NULL, | |
`username` varchar(255) NOT NULL, | |
`password` varchar(255) NOT NULL, | |
`email` varchar(255) NOT NULL, | |
`level` char(2) NOT NULL DEFAULT '1', | |
`active` int(1) NOT NULL DEFAULT '0', | |
`lastlogin` date NOT NULL, | |
`created` datetime NOT NULL, | |
`modified` datetime NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=74 ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment