Skip to content

Commit

Permalink
Add Donor and LastActive Column
Browse files Browse the repository at this point in the history
  • Loading branch information
tobarja committed May 4, 2015
1 parent a8f203d commit d1b6855
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions provision/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,26 @@ CREATE TABLE `Customers` (
`Telephone` varchar(10) NOT NULL,
`Points` int(11) NOT NULL DEFAULT '0',
`Email` varchar(150) DEFAULT NULL,
`Donor` tinyint(1) NOT NULL DEFAULT '0',
`LastActive` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`CustomerID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `Customers` VALUES (1,'Mario','Vickers','9105550001',10,'mario@example.com');
INSERT INTO `Customers` VALUES (3,'Kevin','Brown','9105550003',0,NULL);
INSERT INTO `Customers` VALUES (4,'Tony','Volcy','9105550004',9,'tvolcy@example.com');
INSERT INTO `Customers` VALUES (5,'Bradley','Toms','9105550005',4,'tomsb@example.com');
INSERT INTO `Customers` VALUES (7,'Vince','Sauve','9105550007',9,'vincesauve@example.com');
INSERT INTO `Customers` VALUES (8,'Otto','Flamand','9105550008',3,'otto.flamand1@example.com');
INSERT INTO `Customers` VALUES (9,'Ford','Doran','9105550009',0,NULL);
INSERT INTO `Customers` VALUES (10,'Joan','Mccloskey','9105550010',0,'123@example.com');
INSERT INTO `Customers` VALUES (11,'Aime','Yasinsky','9105550011',0,'aime_y@example.com');
INSERT INTO `Customers` VALUES (12,'Joseph','Leamon','9105550012',9001,'joseph3@example.com');
INSERT INTO `Customers` VALUES (13,'Luis','Tackaberry','9105550013',1,'luist@example.com');
INSERT INTO `Customers` VALUES (14,'Doug','Stolk','9105550014',11,'doug.stolk@example.com');
INSERT INTO `Customers` VALUES (15,'Patricia','Downey','9105550015',0,'PATRICIA@example.com');
INSERT INTO `Customers` VALUES (16,'Wendy','Anglehart','9105550016',80,'anglehart@example.com');
INSERT INTO `Customers` VALUES (17,'Francis','Hogue','9105550017',0,'fh@example.com');
INSERT INTO `Customers` VALUES (1,'Mario','Vickers','9105550001',12,'mario@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (3,'Kevin','Brown','9105550003',0,'',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (4,'Tony','Volcy','9105550004',9,'tvolcy@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (5,'Bradley','Toms','9105550005',4,'tomsb@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (7,'Vince','Sauve','9105550007',9,'vincesauve@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (8,'Otto','Flamand','9105550008',3,'otto.flamand1@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (9,'Ford','Doran','9105550009',0,NULL,0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (10,'Joan','Mccloskey','9105550010',0,'123@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (11,'Aime','Yasinsky','9105550011',0,'aime_y@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (12,'Joseph','Leamon','9105550012',9001,'joseph3@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (13,'Luis','Tackaberry','9105550013',1,'luist@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (14,'Doug','Stolk','9105550014',11,'doug.stolk@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (15,'Patricia','Downey','9105550015',0,'PATRICIA@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (16,'Wendy','Anglehart','9105550016',80,'anglehart@example.com',0,'2015-04-30 17:23:19');
INSERT INTO `Customers` VALUES (17,'Francis','Hogue','9105550017',0,'fh@example.com',0,'2015-04-30 17:23:19');
DROP TABLE IF EXISTS `RedeemLog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
Expand All @@ -38,14 +40,16 @@ CREATE TABLE `RedeemLog` (
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `RedeemLog` VALUES (1,'2015-04-12 05:17:53','admin',1);

DROP TABLE IF EXISTS `Users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`UserName` varchar(50) NOT NULL,
`Password` varchar(255) NOT NULL,
`Admin` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `Users` VALUES (1,'admin','$2y$10$SRw6AG/iAVJO/WsAVVaQAuSWlaRiGumGi5VKyDEZOwgWsB4bT1vvK',1);
INSERT INTO `Users` VALUES (2,'cashier','$2y$10$wLAQNbigEb2SOc5kLKWtlOPxP7V8f7S3KMPDWJqb1.CQg3GEfMH4i',0);

0 comments on commit d1b6855

Please sign in to comment.