@@ -790,6 +790,32 @@ LOCK TABLES `entityimages` WRITE;
790790/* !40000 ALTER TABLE `entityimages` ENABLE KEYS */ ;
791791UNLOCK TABLES;
792792
793+ --
794+ -- Table structure for table `entitylocations`
795+ --
796+
797+ DROP TABLE IF EXISTS ` entitylocations` ;
798+ /* !40101 SET @saved_cs_client = @@character_set_client */ ;
799+ /* !40101 SET character_set_client = utf8 */ ;
800+ CREATE TABLE `entitylocations ` (
801+ ` locationId` varchar (200 ) NOT NULL ,
802+ ` entityId` varchar (255 ) NOT NULL ,
803+ PRIMARY KEY (` locationId` ,` entityId` ),
804+ KEY ` entityIdFKentitylocations_idx` (` entityId` ),
805+ CONSTRAINT ` entityIdFKentitylocations` FOREIGN KEY (` entityId` ) REFERENCES ` entity` (` id` ) ON DELETE CASCADE ON UPDATE NO ACTION,
806+ CONSTRAINT ` locationIdFKentitylocations` FOREIGN KEY (` locationId` ) REFERENCES ` location` (` locationId` ) ON DELETE CASCADE ON UPDATE NO ACTION
807+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8;
808+ /* !40101 SET character_set_client = @saved_cs_client */ ;
809+
810+ --
811+ -- Dumping data for table `entitylocations`
812+ --
813+
814+ LOCK TABLES ` entitylocations` WRITE;
815+ /* !40000 ALTER TABLE `entitylocations` DISABLE KEYS */ ;
816+ /* !40000 ALTER TABLE `entitylocations` ENABLE KEYS */ ;
817+ UNLOCK TABLES;
818+
793819--
794820-- Table structure for table `entityreads`
795821--
@@ -1318,7 +1344,11 @@ DROP TABLE IF EXISTS `location`;
13181344/* !40101 SET character_set_client = utf8 */ ;
13191345CREATE TABLE `location ` (
13201346 ` locationId` varchar (200 ) NOT NULL ,
1321- PRIMARY KEY (` locationId` )
1347+ ` latitude` varchar (200 ) NOT NULL ,
1348+ ` longitude` varchar (200 ) NOT NULL ,
1349+ ` accuracy` varchar (200 ) NOT NULL ,
1350+ PRIMARY KEY (` locationId` ),
1351+ CONSTRAINT ` locationIdFKlocation` FOREIGN KEY (` locationId` ) REFERENCES ` entity` (` id` ) ON DELETE CASCADE ON UPDATE NO ACTION
13221352) ENGINE= InnoDB DEFAULT CHARSET= utf8;
13231353/* !40101 SET character_set_client = @saved_cs_client */ ;
13241354
@@ -1331,32 +1361,6 @@ LOCK TABLES `location` WRITE;
13311361/* !40000 ALTER TABLE `location` ENABLE KEYS */ ;
13321362UNLOCK TABLES;
13331363
1334- --
1335- -- Table structure for table `locations`
1336- --
1337-
1338- DROP TABLE IF EXISTS ` locations` ;
1339- /* !40101 SET @saved_cs_client = @@character_set_client */ ;
1340- /* !40101 SET character_set_client = utf8 */ ;
1341- CREATE TABLE `locations ` (
1342- ` locationId` varchar (200 ) NOT NULL ,
1343- ` entityId` varchar (255 ) NOT NULL ,
1344- ` userId` varchar (200 ) NOT NULL ,
1345- PRIMARY KEY (` locationId` ,` entityId` ,` userId` ),
1346- KEY ` userIdFKlocations_idx` (` userId` ),
1347- CONSTRAINT ` locationIdFKlocations` FOREIGN KEY (` locationId` ) REFERENCES ` location` (` locationId` ) ON DELETE CASCADE ON UPDATE NO ACTION
1348- ) ENGINE= InnoDB DEFAULT CHARSET= utf8;
1349- /* !40101 SET character_set_client = @saved_cs_client */ ;
1350-
1351- --
1352- -- Dumping data for table `locations`
1353- --
1354-
1355- LOCK TABLES ` locations` WRITE;
1356- /* !40000 ALTER TABLE `locations` DISABLE KEYS */ ;
1357- /* !40000 ALTER TABLE `locations` ENABLE KEYS */ ;
1358- UNLOCK TABLES;
1359-
13601364--
13611365-- Table structure for table `message`
13621366--
@@ -1572,6 +1576,32 @@ LOCK TABLES `user` WRITE;
15721576/* !40000 ALTER TABLE `user` ENABLE KEYS */ ;
15731577UNLOCK TABLES;
15741578
1579+ --
1580+ -- Table structure for table `uservideos`
1581+ --
1582+
1583+ DROP TABLE IF EXISTS ` uservideos` ;
1584+ /* !40101 SET @saved_cs_client = @@character_set_client */ ;
1585+ /* !40101 SET character_set_client = utf8 */ ;
1586+ CREATE TABLE `uservideos ` (
1587+ ` userId` varchar (200 ) NOT NULL ,
1588+ ` videoId` varchar (255 ) NOT NULL ,
1589+ PRIMARY KEY (` userId` ,` videoId` ),
1590+ KEY ` videoIdFKuservideos_idx` (` videoId` ),
1591+ CONSTRAINT ` userIdFKuservideos` FOREIGN KEY (` userId` ) REFERENCES ` user` (` userId` ) ON DELETE CASCADE ON UPDATE NO ACTION,
1592+ CONSTRAINT ` videoIdFKuservideos` FOREIGN KEY (` videoId` ) REFERENCES ` video` (` videoId` ) ON DELETE CASCADE ON UPDATE NO ACTION
1593+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8;
1594+ /* !40101 SET character_set_client = @saved_cs_client */ ;
1595+
1596+ --
1597+ -- Dumping data for table `uservideos`
1598+ --
1599+
1600+ LOCK TABLES ` uservideos` WRITE;
1601+ /* !40000 ALTER TABLE `uservideos` DISABLE KEYS */ ;
1602+ /* !40000 ALTER TABLE `uservideos` ENABLE KEYS */ ;
1603+ UNLOCK TABLES;
1604+
15751605--
15761606-- Table structure for table `video`
15771607--
@@ -1634,8 +1664,8 @@ CREATE TABLE `videoannotations` (
16341664 ` videoAnnotationId` varchar (200 ) NOT NULL ,
16351665 PRIMARY KEY (` videoId` ,` videoAnnotationId` ),
16361666 KEY ` videoAnnotationIdFKvideoannotations_idx` (` videoAnnotationId` ),
1637- CONSTRAINT ` videoIdFKvideoannotations ` FOREIGN KEY (` videoId ` ) REFERENCES ` video ` (` videoId ` ) ON DELETE CASCADE ON UPDATE NO ACTION,
1638- CONSTRAINT ` videoAnnotationIdFKvideoannotations ` FOREIGN KEY (` videoAnnotationId ` ) REFERENCES ` videoannotation ` (` videoAnnotationId ` ) ON DELETE CASCADE ON UPDATE NO ACTION
1667+ CONSTRAINT ` videoAnnotationIdFKvideoannotations ` FOREIGN KEY (` videoAnnotationId ` ) REFERENCES ` videoannotation ` (` videoAnnotationId ` ) ON DELETE CASCADE ON UPDATE NO ACTION,
1668+ CONSTRAINT ` videoIdFKvideoannotations ` FOREIGN KEY (` videoId ` ) REFERENCES ` video ` (` videoId ` ) ON DELETE CASCADE ON UPDATE NO ACTION
16391669) ENGINE= InnoDB DEFAULT CHARSET= utf8;
16401670/* !40101 SET character_set_client = @saved_cs_client */ ;
16411671
@@ -1657,4 +1687,4 @@ UNLOCK TABLES;
16571687/* !40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
16581688/* !40111 SET SQL_NOTES=@OLD_SQL_NOTES */ ;
16591689
1660- -- Dump completed on 2014-11-12 17:23:53
1690+ -- Dump completed on 2014-11-13 15:12:11
0 commit comments