Guest User

FS Mensagens Privadas - DB v1.1

a guest
Mar 20th, 2015
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.41 KB | None | 0 0
  1. -- --------------------------------------------------------
  2.  
  3. --
  4. -- Estrutura da tabela `mp_contas`
  5. --
  6.  
  7. CREATE TABLE IF NOT EXISTS `mp_contas` (
  8.   `id` int(11) NOT NULL,
  9.   `user` varchar(24) NOT NULL,
  10.   `novas_mensagens` int(11) NOT NULL,
  11.   `email` varchar(128) NOT NULL
  12. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  13.  
  14. -- --------------------------------------------------------
  15.  
  16. --
  17. -- Estrutura da tabela `mp_msgs`
  18. --
  19.  
  20. CREATE TABLE IF NOT EXISTS `mp_msgs` (
  21.   `id` int(11) NOT NULL,
  22.   `de_contaid` int(11) NOT NULL,
  23.   `para_contaid` int(11) NOT NULL,
  24.   `horario` int(11) NOT NULL,
  25.   `data` varchar(20) NOT NULL,
  26.   `lida` int(11) NOT NULL,
  27.   `Mensagem` varchar(128) NOT NULL
  28. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  29.  
  30. --
  31. -- Indexes for dumped tables
  32. --
  33.  
  34. --
  35. -- Indexes for table `mp_contas`
  36. --
  37. ALTER TABLE `mp_contas`
  38.   ADD PRIMARY KEY (`id`);
  39.  
  40. --
  41. -- Indexes for table `mp_msgs`
  42. --
  43. ALTER TABLE `mp_msgs`
  44.   ADD PRIMARY KEY (`id`);
  45.  
  46. --
  47. -- AUTO_INCREMENT for dumped tables
  48. --
  49.  
  50. --
  51. -- AUTO_INCREMENT for table `mp_contas`
  52. --
  53. ALTER TABLE `mp_contas`
  54.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  55. --
  56. -- AUTO_INCREMENT for table `mp_msgs`
  57. --
  58. ALTER TABLE `mp_msgs`
  59.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  60. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  61. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  62. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment