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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$gN.nVGCj4XxzqR9ZlSwu8J7mbjq2awsEJbJH4LccdYjhwa8/eOmQ9','admin','ak_1f9db64f1bc840e3','2023-10-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$bQe.ug8qKfvkol7kEx4H25HKbu3wgZ2AaYwckI6.PEre/t/TgOaem','user','ak_9d5ac097e629f8f1','2023-06-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$zDu15qlncL3sVajm63vlQTvSWk40PhS6E5knnHALTw74p0UJIhZsd','admin','ak_696a1418691db257','2023-11-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$4776e4viit4f7n8XX6g7X4Zbu.DIlahPJzkT3vh15Az2EqC3IhwT8','user','ak_6ff5135f64bbfa62','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$dHPnJMplH/8bCU2eDHbn6papVM.uSt1qxtlaV8bpO6aOrAY65EfX.','user','ak_3076f4ccd24e8f32','2023-03-17 10:04: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=42987;

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

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


