mirror of
https://github.com/pikami/palm-paste.git
synced 2024-11-24 12:45:44 +00:00
109 lines
2.4 KiB
SQL
109 lines
2.4 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 4.2.12deb2+deb8u1
|
|
-- http://www.phpmyadmin.net
|
|
--
|
|
-- Host: localhost
|
|
-- Generation Time: 2016 m. Bir 16 d. 15:47
|
|
-- Server version: 5.5.44-0+deb8u1
|
|
-- PHP Version: 5.6.20-0+deb8u1
|
|
|
|
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: `palm-paste`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Sukurta duomenų struktūra lentelei `pastes`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `pastes` (
|
|
`id` int(11) NOT NULL,
|
|
`uid` text NOT NULL,
|
|
`title` text NOT NULL,
|
|
`text` text NOT NULL,
|
|
`created` int(10) unsigned NOT NULL DEFAULT '0',
|
|
`expire` int(10) NOT NULL DEFAULT '0',
|
|
`exposure` int(11) NOT NULL DEFAULT '0',
|
|
`owner` int(11) NOT NULL DEFAULT '0',
|
|
`highlight` text NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Sukurta duomenų struktūra lentelei `sessions`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `sessions` (
|
|
`id` int(11) NOT NULL,
|
|
`skey` text NOT NULL,
|
|
`uid` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Sukurta duomenų struktūra lentelei `users`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `users` (
|
|
`id` int(11) NOT NULL,
|
|
`user` text NOT NULL,
|
|
`password` text NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `pastes`
|
|
--
|
|
ALTER TABLE `pastes`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `sessions`
|
|
--
|
|
ALTER TABLE `sessions`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `pastes`
|
|
--
|
|
ALTER TABLE `pastes`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `sessions`
|
|
--
|
|
ALTER TABLE `sessions`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
--
|
|
-- AUTO_INCREMENT for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
/*!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 */;
|