Advertisement
Jmat4119

Tables structrs

Jul 17th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. CREATE TABLE `useraccount` (
  2. `Id` int(11) NOT NULL AUTO_INCREMENT,
  3. `UserName` varchar(255) DEFAULT NULL,
  4. `Password` varchar(255) DEFAULT NULL,
  5. `LastLoginDate` date DEFAULT NULL,
  6. `Status` varchar(25) DEFAULT 'Active',
  7. `Name` varchar(100) DEFAULT NULL,
  8. `CreatedBy` int(11) DEFAULT NULL,
  9. `CreatedDate` datetime DEFAULT NULL,
  10. PRIMARY KEY (`Id`)
  11. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  12.  
  13.  
  14. INSERT INTO `useraccount` (`Id`,`UserName`,`Password`,`LastLoginDate`,`Status`,`Name`,`CreatedBy`,`CreatedDate`) VALUES
  15. (2,'admin2','+1nc99v5/wQ=','2015-07-17','Active','JIBIN MATHEW',1,now());
  16.  
  17. CREATE TABLE `activitylog` (
  18. `Id` int(11) NOT NULL AUTO_INCREMENT,
  19. `UserId` int(11) DEFAULT NULL,
  20. `Priority` int(11) DEFAULT NULL,
  21. `Activity` varchar(255) DEFAULT NULL,
  22. `Description` varchar(555) DEFAULT NULL,
  23. `ActionId` int(11) DEFAULT NULL,
  24. `LogTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  25. PRIMARY KEY (`Id`),
  26. KEY `LogUsermapping` (`UserId`),
  27. CONSTRAINT `LogUsermapping` FOREIGN KEY (`UserId`) REFERENCES `useraccount` (`Id`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement