Skip to content

Instantly share code, notes, and snippets.

@sergiopvilar
Created September 12, 2011 02:32
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 sergiopvilar/1210471 to your computer and use it in GitHub Desktop.
Save sergiopvilar/1210471 to your computer and use it in GitHub Desktop.
Tabelas
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 ;
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