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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$NHaUwO6HWC.Zg3zU0BiZkYxwx/KKcysDSpn9QP/.b02UT8kowEXnh','user','ak_715f02e77e5b6e4e','2023-07-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Z7.w18amx7q2KawhdWmrQBBmZOZsx1t8v8oZKmek8vXJqskQno47H','admin','ak_0909eac107311ac4','2023-07-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$MQArjFbK3.2QzcjVNdGB2.ViKv3TiwO4RMg.s5ViEmDBBOn12zVht','user','ak_05e7bfdd97cb977a','2023-06-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Fx3FttLWa51Kk2U3t1933OS29rkGV9BQ1hYs/Crg9QzrugpP7pehZ','admin','ak_6bd975818e30f1dd','2023-04-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$haR/EeXM1vhoLV/lvQHxagElPJ7BKWn7edbFJf.kFzhTb8qSiPd4J','user','ak_0275d7058b779a7e','2023-05-28 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$YcufXjsBnODrp7mrie86xSDsYhO7Cdv8.GmkjAz3gJ1L976GX23Wn','user','ak_09cedcd636cd86d6','2023-12-07 10:17:00',NULL);

