Created
July 29, 2013 21:15
-
-
Save goosewoman/6107913 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 4.0.4 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: Jul 29, 2013 at 03:54 PM | |
-- Server version: 5.6.12-log | |
-- PHP Version: 5.4.12 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; | |
-- | |
-- Database: `lottery` | |
-- | |
CREATE DATABASE IF NOT EXISTS `lottery` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; | |
USE `lottery`; | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `wins` | |
-- | |
CREATE TABLE IF NOT EXISTS `wins` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`username` varchar(20) COLLATE utf8_bin NOT NULL, | |
`ticketsbought` bigint(20) NOT NULL, | |
`totalticketsbought` bigint(20) NOT NULL, | |
`datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
`amountwon` float NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=11 ; | |
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | |
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment