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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$64nvI5.ndQ07187nLQxesiTJUrPGHuQd5Er6E7umeCOosjNvCaf24','user','ak_2b0a977ece14323a','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$aggKfDAqq0cSehwMH6fyYznrh0MAmMj2wBHdOOq36JclyPRJcnqcA','user','ak_b8e9e51eea25f7e7','2023-02-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$IdQ72qLoevYau7BEyhIDc3MrqxfdxUlNYBg3wTFV861hOiQ.6t7n.','user','ak_75ed3682ad22bb7b','2023-12-24 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$3pVf1XBq1LuTdGVQFPfaM42jUIwT8jmNWXQ/ZmMKjGECn1.rMJiPz','user','ak_b7d5f851f89c68ac','2023-10-25 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$grhKqkp1MF725Esxz1qxiWK.J8CB73t8lNv7f4RxbMq.RlptoDUZF','user','ak_3845bed70f0f8de7','2023-03-11 10:13:00',NULL);

