Advertisement
Guest User

matches and stages

a guest
Aug 15th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.24 KB | None | 0 0
  1. -- ----------------------------
  2. --  Table structure for `matches`
  3. -- ----------------------------
  4. DROP TABLE IF EXISTS `matches`;
  5. CREATE TABLE `matches` (
  6.   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  7.   `match_name` varchar(200) NOT NULL,
  8.   `match_type` varchar(200) NOT NULL,
  9.   `clubID` varchar(200) NOT NULL,
  10.   `deviceID` varchar(200) NOT NULL,
  11.   `matchuuid` varchar(200) NOT NULL,
  12.   `password` varchar(200) NOT NULL,
  13.   `match_date` datetime NOT NULL,
  14.   `match_creationdate` varchar(200) NOT NULL,
  15.   `match_modifieddate` varchar(200) NOT NULL,
  16.   `URLSegment` varchar(200) NOT NULL,
  17.   `notes` text,
  18.   `matchTitle` varchar(200) DEFAULT NULL,
  19.   `contentAllResults` tinyint(1) NOT NULL,
  20.   `match_usesdqpoints` tinyint(1) NOT NULL,
  21.   `match_sdqpoints` decimal(17,2) NOT NULL,
  22.   `match_owner` tinyint(1) DEFAULT NULL,
  23.   `version` decimal(5,2) DEFAULT NULL,
  24.   `created_at` datetime NOT NULL,
  25.   `updated_at` datetime NOT NULL,
  26.   PRIMARY KEY (`id`)
  27. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
  28.  
  29. -- ----------------------------
  30. --  Records of `matches`
  31. -- ----------------------------
  32. BEGIN;
  33. INSERT INTO `matches` VALUES ('1', '2012 Games', 'timeplus', 'devin', 'a8b21f32f28460cb1dc89d63c822903e9a0a6a20', 'E11A3C81-A2B8-48E2-BE1B-1FFB77CC5849', '', '2012-05-17 00:00:00', '2012-08-06 20:47:45.607', '2012-08-06 21:34:50.431', 'E11A3C81-A2B8-48E2-BE1B-1FFB77CC5849', 'Bar', 'foo', '1', '0', '999.00', '0', '1.00', '2012-08-08 23:21:36', '2012-08-08 23:27:18');
  34. COMMIT;
  35.  
  36. SET FOREIGN_KEY_CHECKS = 1;
  37.  
  38.  
  39. -- ----------------------------
  40. --  Table structure for `stages`
  41. -- ----------------------------
  42. DROP TABLE IF EXISTS `stages`;
  43. CREATE TABLE `stages` (
  44.   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  45.   `stage_name` varchar(100) NOT NULL,
  46.   `stage_number` int(11) NOT NULL,
  47.   `stage_tppoints` int(11) NOT NULL,
  48.   `stage_modifieddate` varchar(30) NOT NULL,
  49.   `stage_uuid` varchar(200) NOT NULL,
  50.   `stage_numtargets` int(11) NOT NULL,
  51.   `match_id` int(10) unsigned NOT NULL,
  52.   `created_at` datetime NOT NULL,
  53.   `updated_at` datetime NOT NULL,
  54.   PRIMARY KEY (`id`),
  55.   KEY `stages_match_id_index` (`match_id`),
  56.   CONSTRAINT `stages_match_id_foreign` FOREIGN KEY (`match_id`) REFERENCES `matches` (`id`) ON DELETE CASCADE
  57. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
  58.  
  59. -- ----------------------------
  60. --  Records of `stages`
  61. -- ----------------------------
  62. BEGIN;
  63. INSERT INTO `stages` VALUES ('1', 'Stage 1 - Fort', '1', '100', '2012-05-18 21:07:06.636', 'D127736E-26AC-43AF-B448-D30E5937B570', '24', '1', '2012-08-08 23:21:36', '2012-08-08 23:27:18'), ('2', 'Stage 2 - Junction', '2', '100', '2012-05-18 21:07:26.079', 'D5EF3B74-AAA2-4E31-B9BB-A5BB9EF58A3E', '24', '1', '2012-08-08 23:21:36', '2012-08-08 23:27:18'), ('3', 'Stage 3 - Saloon', '3', '100', '2012-05-18 21:07:53.512', 'C70AF795-FD7B-4910-9363-A9AF17260D2E', '24', '1', '2012-08-08 23:21:36', '2012-08-08 23:27:18'), ('4', 'Stage 4 - Office', '4', '100', '2012-05-18 21:08:21.220', '84A775F0-0C99-460B-8606-FF07EDAAD0C9', '24', '1', '2012-08-08 23:21:36', '2012-08-08 23:27:18'), ('5', 'Stage 5 -Shack', '5', '100', '2012-05-18 21:09:06.083', 'CCEE75C3-B502-4103-9C81-731CCE4D9644', '24', '1', '2012-08-08 23:21:37', '2012-08-08 23:27:19');
  64. COMMIT;
  65.  
  66. SET FOREIGN_KEY_CHECKS = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement