-- Host: db-master-0.internal    Database: analytics


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=47515;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$rX95uMcpsGJe9LuPWO0jTEWZxmfCEAvvcQJI4SRMogYCK/clNXrlJ','user','ak_3a7954ccda797d27','2023-01-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$lYrZsXs0p27AURwt2oNeiIHRN1lrkDAz.0Jm65S9AAkBCI8gpf/VE','admin','ak_27331d3f0d1120da','2023-08-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$NyzHUtwyVYupiaMk7s4nlve.EoCxevigVDOCC48KlZwyaCi4hIoaN','user','ak_56d910218db3e3a8','2023-03-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$wfV4sJKm/9nBADxFUvfISib.kRbBxy.F5xSfgWpu.EHth.cMOflRh','admin','ak_1941724d7880f12e','2023-02-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$tktxeeuhnixG3JDyufFeaJBeA6iJh2KgCxBLVShkhkTmL2vmKz5LF','user','ak_5865cbaa9b2529ea','2023-06-26 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$G4RoiiCTjsMuH/fvOizsgSVdYii.IsIHmt2MN5et7/MmKeKPYdadl','user','ak_00dedd34ac3ce4e4','2023-02-27 10:14:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1728;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=44465;

--
-- Dumping data for table `orders`
--


