Skip to content

Instantly share code, notes, and snippets.

@stephepush
Created January 24, 2019 20:43
Show Gist options
  • Select an option

  • Save stephepush/040e54efcad015700524ffd19612e8bd to your computer and use it in GitHub Desktop.

Select an option

Save stephepush/040e54efcad015700524ffd19612e8bd to your computer and use it in GitHub Desktop.
SQL schema for Laracasts todo app
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 24, 2019 at 08:34 PM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `mytodo`
--
-- --------------------------------------------------------
--
-- Table structure for table `todos`
--
CREATE TABLE `todos` (
`id` int(11) NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`completed` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `todos`
--
INSERT INTO `todos` (`id`, `description`, `completed`) VALUES
(1, 'Goto the store', 0),
(2, 'Finish up screencast', 0),
(3, 'Contribute to open source project', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `todos`
--
ALTER TABLE `todos`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `todos`
--
ALTER TABLE `todos`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment