Merge pull request #27 from TheSerapher/next
Next to Master: Table Structure
This commit is contained in:
commit
52a8266bfe
@ -1,11 +1,11 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 3.5.8.1deb1
|
||||
-- version 3.5.1
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Erstellungszeit: 14. Mai 2013 um 16:12
|
||||
-- Server Version: 5.5.31-0ubuntu0.13.04.1
|
||||
-- PHP-Version: 5.4.9-4ubuntu2
|
||||
-- Generation Time: May 16, 2013 at 09:25 PM
|
||||
-- Server version: 5.5.31-log
|
||||
-- PHP Version: 5.4.15
|
||||
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
SET time_zone = "+00:00";
|
||||
@ -17,13 +17,13 @@ SET time_zone = "+00:00";
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
|
||||
--
|
||||
-- Datenbank: `mmcfe_ng_db`
|
||||
-- Database: `mmcfe_ng_db`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `accounts`
|
||||
-- Table structure for table `accounts`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `accounts` (
|
||||
@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `accounts` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `blocks`
|
||||
-- Table structure for table `blocks`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `blocks` (
|
||||
@ -63,12 +63,12 @@ CREATE TABLE IF NOT EXISTS `blocks` (
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `height` (`height`,`blockhash`),
|
||||
KEY `time` (`time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Discovered blocks persisted from Litecoin Service';
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Discovered blocks persisted from Litecoin Service';
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `settings`
|
||||
-- Table structure for table `settings`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `settings` (
|
||||
@ -80,7 +80,7 @@ CREATE TABLE IF NOT EXISTS `settings` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `shares`
|
||||
-- Table structure for table `shares`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shares` (
|
||||
@ -95,13 +95,14 @@ CREATE TABLE IF NOT EXISTS `shares` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `time` (`time`),
|
||||
KEY `upstream_result` (`upstream_result`),
|
||||
KEY `our_result` (`our_result`)
|
||||
KEY `our_result` (`our_result`),
|
||||
KEY `username` (`username`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `shares_archive`
|
||||
-- Table structure for table `shares_archive`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shares_archive` (
|
||||
@ -111,16 +112,15 @@ CREATE TABLE IF NOT EXISTS `shares_archive` (
|
||||
`our_result` enum('Y','N') DEFAULT NULL,
|
||||
`upstream_result` enum('Y','N') DEFAULT NULL,
|
||||
`block_id` int(10) unsigned NOT NULL,
|
||||
`time` datetime NOT NULL,
|
||||
`time` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `share_id` (`share_id`),
|
||||
KEY `time` (`time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Archive shares for potential later debugging purposes';
|
||||
UNIQUE KEY `share_id` (`share_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Archive shares for potential later debugging purposes';
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `statistics_shares`
|
||||
-- Table structure for table `statistics_shares`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `statistics_shares` (
|
||||
@ -132,12 +132,12 @@ CREATE TABLE IF NOT EXISTS `statistics_shares` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `account_id` (`account_id`),
|
||||
KEY `block_id` (`block_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `transactions`
|
||||
-- Table structure for table `transactions`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `transactions` (
|
||||
@ -153,12 +153,12 @@ CREATE TABLE IF NOT EXISTS `transactions` (
|
||||
KEY `block_id` (`block_id`),
|
||||
KEY `account_id` (`account_id`),
|
||||
KEY `type` (`type`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `workers`
|
||||
-- Table structure for table `workers`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `workers` (
|
||||
@ -166,7 +166,6 @@ CREATE TABLE IF NOT EXISTS `workers` (
|
||||
`account_id` int(255) NOT NULL,
|
||||
`username` char(50) DEFAULT NULL,
|
||||
`password` char(255) DEFAULT NULL,
|
||||
`active` tinyint(4) DEFAULT '0',
|
||||
`hashrate` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `username` (`username`),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user