-- https://www.phpmyadmin.net/
--




--
-- Database: `gempliCardsEC219`
--

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

--
-- Table structure for table `card`
--

CREATE TABLE `card` (
  `id` int(11) NOT NULL,
  `text` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` int(2) NOT NULL,
  `status` int(1) NOT NULL,
  `zIndex` int(3) NOT NULL DEFAULT '1',
  `id_deck` int(11) NOT NULL,
  `updated_at` datetime NOT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `card`
--

INSERT INTO `card` (`id`, `text`, `options`, `type`, `status`, `zIndex`, `id_deck`, `updated_at`, `created_at`) VALUES
(1, 'Where are you from', '', 1, 1, 1, 1, '2019-11-18 11:55:19', '2019-11-18 11:55:19'),
(2, 'Do you like your job?', 'Yes<> No<> somtimes<> never<>  other', 1, 1, 2, 2, '2019-11-18 11:55:19', '2019-11-18 11:55:19'),
(3, 'Choose between the options which is the best.', 'Sleep until late<> Wake up late<> Wake up early in the morning and do jogging<> other', 1, 1, 3, 1, '2019-11-18 11:55:19', '2019-11-18 11:55:19'),
(4, 'When is the best time for you at work?', '', 1, 1, 4, 2, '2019-11-18 11:55:19', '2019-11-18 11:55:19');

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

--
-- Table structure for table `deck`
--

CREATE TABLE `deck` (
  `id` int(11) NOT NULL,
  `text` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `deck`
--

INSERT INTO `deck` (`id`, `text`, `created_at`, `updated_at`) VALUES
(1, 'Personal', '2019-11-18 11:55:19', '2019-11-18 11:55:19'),
(2, 'Job', '2019-11-18 11:55:19', '2019-11-18 11:55:19');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `card`
--
ALTER TABLE `card`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `deck`
--
ALTER TABLE `deck`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `card`
--
ALTER TABLE `card`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `deck`
--
ALTER TABLE `deck`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

