-- phpMyAdmin SQL Dump
-- version 4.0.10deb1ubuntu0.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 19, 2018 at 06:01 PM
-- Server version: 5.5.62-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.26

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: `sten_db`
--

-- --------------------------------------------------------

--
-- Table structure for table `bets`
--

CREATE TABLE IF NOT EXISTS `bets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(17) NOT NULL,
  `color` text NOT NULL,
  `amount` int(11) NOT NULL,
  `won` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=69 ;

-- --------------------------------------------------------

--
-- Table structure for table `codes`
--

CREATE TABLE IF NOT EXISTS `codes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(17) NOT NULL,
  `code` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;

-- --------------------------------------------------------

--
-- Table structure for table `dice`
--

CREATE TABLE IF NOT EXISTS `dice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(17) NOT NULL,
  `type` text NOT NULL,
  `amount` int(11) NOT NULL,
  `amount_won` int(11) NOT NULL,
  `gnumber` text NOT NULL,
  `chance` text NOT NULL,
  `won` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=44 ;

-- --------------------------------------------------------

--
-- Table structure for table `inv`
--

CREATE TABLE IF NOT EXISTS `inv` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `itemid` bigint(20) NOT NULL,
  `name` text NOT NULL,
  `price` text NOT NULL,
  `image` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `logins`
--

CREATE TABLE IF NOT EXISTS `logins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` text NOT NULL,
  `steamid` varchar(17) NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=166 ;

-- --------------------------------------------------------

--
-- Table structure for table `logs`
--

CREATE TABLE IF NOT EXISTS `logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `steamid` varchar(17) NOT NULL,
  `action` text NOT NULL,
  `amount` text NOT NULL,
  `log` text NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `id_2` (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=176 ;

-- --------------------------------------------------------

--
-- Table structure for table `mines`
--

CREATE TABLE IF NOT EXISTS `mines` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(17) NOT NULL,
  `bombs` text NOT NULL,
  `tiles_clicked` text NOT NULL,
  `type` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `won_amount` int(11) NOT NULL,
  `win` int(11) NOT NULL DEFAULT '-1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=189 ;

-- --------------------------------------------------------

--
-- Table structure for table `raffles`
--

CREATE TABLE IF NOT EXISTS `raffles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tipul` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `item_name` text CHARACTER SET utf8 NOT NULL,
  `item_image` text NOT NULL,
  `item_price` text NOT NULL,
  `slots` int(11) NOT NULL,
  `price_per_ticket` text NOT NULL,
  `hash` text NOT NULL,
  `secrets` text NOT NULL,
  `secret_winner` text NOT NULL,
  `secret_number` int(11) NOT NULL,
  `winner_steamid` varchar(17) NOT NULL,
  `winner_tradeid` int(11) NOT NULL,
  `winner_status` int(11) NOT NULL,
  `winner_statustext` text NOT NULL,
  `ended` int(11) NOT NULL DEFAULT '0',
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;

-- --------------------------------------------------------

--
-- Table structure for table `raffles_entries`
--

CREATE TABLE IF NOT EXISTS `raffles_entries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `raffle_id` int(11) NOT NULL,
  `raffle_name` text NOT NULL,
  `raffle_price` int(11) NOT NULL,
  `raffle_ppt` int(11) NOT NULL,
  `raffle_img` text NOT NULL,
  `slot_number` int(11) NOT NULL,
  `user` text NOT NULL,
  `name` text CHARACTER SET utf8 NOT NULL,
  `avatar` int(11) NOT NULL,
  `won` int(11) NOT NULL,
  `ended` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=48 ;

-- --------------------------------------------------------

--
-- Table structure for table `rolls`
--

CREATE TABLE IF NOT EXISTS `rolls` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rolled` int(11) NOT NULL,
  `hash` text NOT NULL,
  `lottery` text NOT NULL,
  `secret` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=20318 ;

-- --------------------------------------------------------

--
-- Table structure for table `settings`
--

CREATE TABLE IF NOT EXISTS `settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `maintenance` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

--
-- Table structure for table `trades`
--

CREATE TABLE IF NOT EXISTS `trades` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tid` int(11) NOT NULL,
  `user` varchar(17) NOT NULL,
  `type` text NOT NULL,
  `status` int(11) NOT NULL,
  `status_text` text NOT NULL,
  `amount` int(11) NOT NULL,
  `itemids` text NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` text NOT NULL,
  `steamid` varchar(17) NOT NULL,
  `wagered` int(11) NOT NULL,
  `wags` int(11) NOT NULL,
  `wwags` int(11) NOT NULL,
  `deps` int(11) NOT NULL,
  `depamount` int(11) NOT NULL,
  `withs` int(11) NOT NULL,
  `withamount` int(11) NOT NULL,
  `can_withdraw` int(11) NOT NULL DEFAULT '0',
  `available` int(11) NOT NULL,
  `aff` varchar(17) NOT NULL,
  `affs` int(11) NOT NULL DEFAULT '0',
  `affamount` int(11) NOT NULL,
  `affcollected` int(11) NOT NULL,
  `name` varchar(256) NOT NULL,
  `balance` int(11) NOT NULL,
  `rank` int(11) NOT NULL,
  `steam_level` int(11) DEFAULT '-1',
  `mute` int(11) NOT NULL,
  `ban` int(11) NOT NULL,
  `avatar` text NOT NULL,
  `dailygift` int(11) NOT NULL,
  `hourlygift` int(11) NOT NULL,
  `redeemed_code` text NOT NULL,
  `disabled_send` int(11) NOT NULL,
  `disabled_withdraw` int(11) NOT NULL,
  `token` varchar(128) NOT NULL,
  `last` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=49 ;

/*!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 */;
