Advertisement
AleeFerreira

cls - estrutura das tabelas

Aug 10th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.10 KB | None | 0 0
  1. --
  2. -- Banco de Dados: `clsv1a0`
  3. --
  4.  
  5. -- --------------------------------------------------------
  6.  
  7. --
  8. -- Estrutura da tabela `users`
  9. --
  10.  
  11. CREATE TABLE IF NOT EXISTS `users` (
  12.   `username` varchar(30) NOT NULL,
  13.   `password` varchar(40) NOT NULL,
  14.   `email` varchar(120) NOT NULL,
  15.   `nickname` varchar(25) NOT NULL,
  16.   `active` int(1) NOT NULL DEFAULT '0',
  17.   `date` varchar(25) NOT NULL,
  18.   `products` int(11) NOT NULL DEFAULT '0',
  19.   `adsid` int(11) NOT NULL
  20. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  21.  
  22. --
  23. -- Estrutura da tabela `passwords`
  24. --
  25.  
  26. CREATE TABLE IF NOT EXISTS `passwords` (
  27.   `password` int(11) NOT NULL
  28. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  29.  
  30. CREATE TABLE IF NOT EXISTS `ads` (
  31.   `adsid` int(11) NOT NULL,
  32.   `title` varchar(100) NOT NULL,
  33.   `owner` varchar(35) NOT NULL,
  34.   `type` varchar(30) NOT NULL,
  35.   `price` int(11) NOT NULL,
  36.   `image` text NOT NULL,
  37.   `status` varchar(50) NOT NULL,
  38.   `active` int(11) NOT NULL DEFAULT '0',
  39.   `obs` text NOT NULL,
  40.   `ints` int(11) NOT NULL DEFAULT '0',
  41.   `intsnames` text NOT NULL,
  42.   PRIMARY KEY (`adsid`)
  43. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement