-- http://www.phpmyadmin.net
--
-- Generato il: Mar 23, 2014 alle 11:13
-- Versione del server: 5.5.36-MariaDB
-- Versione PHP: 5.5.10




--
-- Database: `simplecrud_db`
--
CREATE DATABASE `simplecrud_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `simplecrud_db`;

-- --------------------------------------------------------

--
-- Struttura della tabella `address`
--

CREATE TABLE IF NOT EXISTS `address` (
  `ID` text NOT NULL,
  `CITY` text NOT NULL,
  `COUNTRY` text NOT NULL,
  `STREET` text NOT NULL,
  `SUBURB` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dump dei dati per la tabella `address`
--

INSERT INTO `address` (`ID`, `CITY`, `COUNTRY`, `STREET`, `SUBURB`) VALUES
('1', 'city', 'country', 'street', 'suburb'),
('2', 'city', 'country', 'street', 'suburb'),
('3', 'city', 'country', 'street', 'suburb'),
('4', 'city', 'country', 'street', 'suburb'),
('5', 'city', 'country', 'street', 'suburb'),
('6', 'city', 'country', 'street', 'suburb'),
('7', 'city', 'country', 'street', 'suburb'),
('8', 'city', 'country', 'street', 'suburb'),
('9', 'city', 'country', 'street', 'suburb'),
('10', 'city', 'country', 'street', 'suburb'),
('11', 'city', 'country', 'street', 'suburb'),
('12', 'city', 'country', 'street', 'suburb'),
('13', 'city', 'country', 'street', 'suburb');

-- --------------------------------------------------------

--
-- Struttura della tabella `role`
--

CREATE TABLE IF NOT EXISTS `role` (
  `ID` text NOT NULL,
  `ROLEDESC` text NOT NULL,
  `ROLENAME` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dump dei dati per la tabella `role`
--

INSERT INTO `role` (`ID`, `ROLEDESC`, `ROLENAME`) VALUES
('1', 'Administrator', 'Administrators'),
('2', 'Manager', 'Managers'),
('3', 'User', 'Users');
-- --------------------------------------------------------

--
-- Struttura della tabella `user_roles`
--

CREATE TABLE IF NOT EXISTS `user_roles` (
  `Role_roleid` text NOT NULL,
  `User_userid` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dump dei dati per la tabella `user_roles`
--

INSERT INTO `user_roles` (`Role_roleid`, `User_userid`) VALUES
('1', '1'),
('3', '2'),
('3', '3'),
('3', '4'),
('3', '5'),
('3', '6'),
('3', '7'),
('3', '8'),
('3', '9'),
('3', '10'),
('3', '11'),
('3', '12'),
('3', '13');

