CREATE DATABASE  IF NOT EXISTS `Data Mart Online_Games` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `Data Mart Online_Games`;
-- MySQL dump 10.13  Distrib 5.5.46, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1    Database: Data Mart Online_Games
-- ------------------------------------------------------
-- Server version	5.6.14

/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `Koha`
--

DROP TABLE IF EXISTS `Koha`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Koha` (
  `kohe_id` int(11) NOT NULL AUTO_INCREMENT,
  `total` int(11) NOT NULL,
  `viti` year(4) NOT NULL,
  `muaji` date NOT NULL,
  `dita` date NOT NULL,
  PRIMARY KEY (`kohe_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Koha`
--

LOCK TABLES `Koha` WRITE;
/*!40000 ALTER TABLE `Koha` DISABLE KEYS */;
/*!40000 ALTER TABLE `Koha` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Loja`
--

DROP TABLE IF EXISTS `Loja`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Loja` (
  `loje_id` int(11) NOT NULL AUTO_INCREMENT,
  `emer` varchar(45) NOT NULL,
  `total` int(11) NOT NULL,
  PRIMARY KEY (`loje_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Loja`
--

LOCK TABLES `Loja` WRITE;
/*!40000 ALTER TABLE `Loja` DISABLE KEYS */;
/*!40000 ALTER TABLE `Loja` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lojra_te_blera`
--

DROP TABLE IF EXISTS `lojra_te_blera`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lojra_te_blera` (
  `id_blerje` int(11) NOT NULL AUTO_INCREMENT,
  `sasi` int(11) NOT NULL,
  `vlere` int(11) NOT NULL,
  PRIMARY KEY (`id_blerje`),
  CONSTRAINT `id_lojtari` FOREIGN KEY (`id_blerje`) REFERENCES `lojtari` (`lojtari_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `id_kohe` FOREIGN KEY (`id_blerje`) REFERENCES `Koha` (`kohe_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `id_loje` FOREIGN KEY (`id_blerje`) REFERENCES `Loja` (`loje_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `id_vendodhje` FOREIGN KEY (`id_blerje`) REFERENCES `vendodhja` (`vendodhje_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lojra_te_blera`
--

LOCK TABLES `lojra_te_blera` WRITE;
/*!40000 ALTER TABLE `lojra_te_blera` DISABLE KEYS */;
/*!40000 ALTER TABLE `lojra_te_blera` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `lojtari`
--

DROP TABLE IF EXISTS `lojtari`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lojtari` (
  `lojtari_id` int(11) NOT NULL AUTO_INCREMENT,
  `total` int(11) NOT NULL,
  `emer` varchar(45) NOT NULL,
  `mosha` int(11) NOT NULL,
  PRIMARY KEY (`lojtari_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `lojtari`
--

LOCK TABLES `lojtari` WRITE;
/*!40000 ALTER TABLE `lojtari` DISABLE KEYS */;
/*!40000 ALTER TABLE `lojtari` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `vendodhja`
--

DROP TABLE IF EXISTS `vendodhja`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vendodhja` (
  `vendodhje_id` int(11) NOT NULL AUTO_INCREMENT,
  `total` int(11) NOT NULL,
  `qyteti` varchar(45) NOT NULL,
  `adresa` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`vendodhje_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `vendodhja`
--

LOCK TABLES `vendodhja` WRITE;
/*!40000 ALTER TABLE `vendodhja` DISABLE KEYS */;
/*!40000 ALTER TABLE `vendodhja` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2016-01-14 15:23:39
