-- Host: db-master-3.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=4299;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$6F9IiFVd.aGYDxA2Vl9R4hxIz5eG9MynhDO/tx87GH3BJIZeCvKPg','user','ak_8cc951ec2e4c37ea','2023-06-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$RAPNhbbob.jkiOBF3l8I.vwuIiVVYjQJMWO32XZcqZvNLLTIsQCG0','admin','ak_8a0b23817310d738','2023-09-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$qNB.ePZfR3Lhh7XhERdYSyZejQ1FI/VyFv2mZnmbUqG5o4JGgPMpu','admin','ak_0b0b2e2655a1f699','2023-04-25 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$F74Kr4yqD2m/gw1hDbmHJcu17lHueHuxMVE2QP6mFmxKJZ2UdwsQD','admin','ak_f7f2799699513e0c','2023-08-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$MS2A3QuEKjdJHHAwa5Rx9zPJco8Xq7gTCr0cDOuM4JUg0dKDv0mz3','user','ak_d64dd73c182a8b6a','2023-10-20 10:19: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=47565;

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

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


