-- Host: db-master-5.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=42811;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$aLUWJu7vAdNs00A469jISamyPxn/VPoybG/157EFk6vVXctMTM4b7','user','ak_d826e8edef2e71d1','2023-04-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$ZFgAOPsgE54c2B3n.8wafEhPY6AQm5wOO72yDZr4vfHbI.Ce2k93.','user','ak_d890e1a361165dc6','2023-06-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$mgyvJ/66F/Q2U2CkkOgJVAoUGz0sVralhhLr2LWgGMsui9Fi01lG7','admin','ak_acc8f0b933fcaeb3','2023-05-02 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$DKq.8MxjSHD52ZnDDpVdJDCsnkK1yvnKEAcRkXgQZlsmHCYxo2UHf','user','ak_21781c446e9ea4ab','2023-11-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$LdCT75EJpqNF4lOKVPHoh59X5HeaA4hMDOp0FA/ZcI97tdnpoWGkT','admin','ak_368e4f8f96b81685','2023-02-10 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$KWjUik57A4/4OxWWANCnim7Ffyc9q7ypQAV1mlEZR6.LSgJeVgYDm','user','ak_04b01ff300d516ce','2023-12-22 10:17:00',NULL);

--
-- 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=45123;

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


--
-- 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=36114;

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


