Skip to content
Snippets Groups Projects
Commit 7978189f authored by Aldrich Valentino Halim's avatar Aldrich Valentino Halim
Browse files

added column in transaction table

parent da2ce677
1 merge request!42Projekers - 13515051 - Girvandi Ilyas
-- MySQL dump 10.16 Distrib 10.1.26-MariaDB, for Win32 (AMD64) -- MySQL dump 10.16 Distrib 10.1.25-MariaDB, for Win32 (AMD64)
-- --
-- Host: localhost Database: projekers -- Host: localhost Database: projekers
-- ------------------------------------------------------ -- ------------------------------------------------------
-- Server version 10.1.26-MariaDB -- Server version 10.1.25-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
...@@ -36,7 +36,7 @@ CREATE TABLE `pref_loc` ( ...@@ -36,7 +36,7 @@ CREATE TABLE `pref_loc` (
LOCK TABLES `pref_loc` WRITE; LOCK TABLES `pref_loc` WRITE;
/*!40000 ALTER TABLE `pref_loc` DISABLE KEYS */; /*!40000 ALTER TABLE `pref_loc` DISABLE KEYS */;
INSERT INTO `pref_loc` VALUES (1,'Tubagus Ismail'),(1,'Dago Asri'),(1,'Kopo'); INSERT INTO `pref_loc` VALUES (1,'Tubagus Ismail'),(1,'Dago Asri'),(1,'Kopo'),(2,'Ciwalk'),(2,'PVJ'),(2,'BEC'),(3,'BEC'),(3,'Tubagus Ismail'),(3,'ITB');
/*!40000 ALTER TABLE `pref_loc` ENABLE KEYS */; /*!40000 ALTER TABLE `pref_loc` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
...@@ -56,12 +56,13 @@ CREATE TABLE `transaction` ( ...@@ -56,12 +56,13 @@ CREATE TABLE `transaction` (
`rating` int(1) NOT NULL, `rating` int(1) NOT NULL,
`comment` text NOT NULL, `comment` text NOT NULL,
`date` date NOT NULL, `date` date NOT NULL,
`is_visible` tinyint(1) NOT NULL,
PRIMARY KEY (`transaction_id`) USING BTREE, PRIMARY KEY (`transaction_id`) USING BTREE,
KEY `user_id` (`user_id`), KEY `user_id` (`user_id`),
KEY `driver_id` (`driver_id`), KEY `driver_id` (`driver_id`),
CONSTRAINT `transaction_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`), CONSTRAINT `transaction_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`),
CONSTRAINT `transaction_ibfk_2` FOREIGN KEY (`driver_id`) REFERENCES `user` (`id`) CONSTRAINT `transaction_ibfk_2` FOREIGN KEY (`driver_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
...@@ -70,7 +71,7 @@ CREATE TABLE `transaction` ( ...@@ -70,7 +71,7 @@ CREATE TABLE `transaction` (
LOCK TABLES `transaction` WRITE; LOCK TABLES `transaction` WRITE;
/*!40000 ALTER TABLE `transaction` DISABLE KEYS */; /*!40000 ALTER TABLE `transaction` DISABLE KEYS */;
INSERT INTO `transaction` VALUES (1,1,2,'Tubagus Ismail','Cisitu',5,'Oke banget','2017-09-01'),(2,4,3,'Dago Asri','Kampus ITB',2,'Lambat banget nih','2017-10-01'),(3,1,3,'Cisitu','Plesiran',2,'Drivernya lambat pisan','2017-09-30'),(4,4,1,'Kopo','Ciwalk',5,'Perjalanan jauh tapi menyenangkan','2017-10-01'); INSERT INTO `transaction` VALUES (1,1,2,'Tubagus Ismail','Cisitu',5,'Oke banget','2017-09-01',1),(2,4,3,'Dago Asri','Kampus ITB',2,'Lambat banget nih','2017-10-01',1),(3,1,3,'Cisitu','Plesiran',2,'Drivernya lambat pisan','2017-09-30',1),(4,4,1,'Kopo','Ciwalk',5,'Perjalanan jauh tapi menyenangkan','2017-10-01',1);
/*!40000 ALTER TABLE `transaction` ENABLE KEYS */; /*!40000 ALTER TABLE `transaction` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
...@@ -113,4 +114,4 @@ UNLOCK TABLES; ...@@ -113,4 +114,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-10-01 22:25:06 -- Dump completed on 2017-10-06 10:49:10
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment