mirror of https://github.com/rusefi/msqur.git
111 lines
2.6 KiB
SQL
111 lines
2.6 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 4.3.3
|
|
-- http://www.phpmyadmin.net
|
|
--
|
|
-- Host: localhost
|
|
-- Generation Time: Dec 22, 2014 at 02:49 PM
|
|
-- Server version: 10.0.15-MariaDB-log
|
|
-- PHP Version: 5.6.3
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
SET time_zone = "+00:00";
|
|
|
|
/*!40101 SET NAMES utf8 */;
|
|
|
|
--
|
|
-- Database: `msqur`
|
|
--
|
|
CREATE DATABASE IF NOT EXISTS `msqur` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
|
USE `msqur`;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `engines`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `engines`;
|
|
CREATE TABLE IF NOT EXISTS `engines` (
|
|
`id` int(11) NOT NULL,
|
|
`displacement` decimal(4,2) NOT NULL,
|
|
`numCylinders` tinyint(2) NOT NULL,
|
|
`compression` decimal(4,2) NOT NULL,
|
|
`induction` int(11) NOT NULL,
|
|
`injectorSize` int(11) NOT NULL
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `metadata`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `metadata`;
|
|
CREATE TABLE IF NOT EXISTS `metadata` (
|
|
`id` int(11) NOT NULL,
|
|
`msq` int(11) NOT NULL,
|
|
`engine` int(11) DEFAULT NULL,
|
|
`url` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
|
`fileFormat` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
|
`signature` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
|
`firmware` varchar(255) NOT NULL,
|
|
`author` varchar(255) NOT NULL,
|
|
`writeDate` datetime NOT NULL,
|
|
`uploadDate` datetime NOT NULL,
|
|
`tuneComment` text NOT NULL
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `msqs`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `msqs`;
|
|
CREATE TABLE IF NOT EXISTS `msqs` (
|
|
`id` int(11) NOT NULL,
|
|
`xml` mediumtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `engines`
|
|
--
|
|
ALTER TABLE `engines`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `metadata`
|
|
--
|
|
ALTER TABLE `metadata`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `msqs`
|
|
--
|
|
ALTER TABLE `msqs`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `engines`
|
|
--
|
|
ALTER TABLE `engines`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
|
|
--
|
|
-- AUTO_INCREMENT for table `metadata`
|
|
--
|
|
ALTER TABLE `metadata`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
|
|
--
|
|
-- AUTO_INCREMENT for table `msqs`
|
|
--
|
|
ALTER TABLE `msqs`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
|