-- Host: db-master-3.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$gd2DhMjiyo19gKT5hMxPQp9Sg7nWYtOBiln8aqYp0hlXnzOSjM84C','user','ak_8d9f84870e908899','2023-02-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$oCQ4liChEFj7RAuVhl3B4SOZ39IS/iiKhG.X5tDgX3wrrtVZ/Cov7','admin','ak_1c3b26c4f98fb1a4','2023-09-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$1J7shi4Mo/ROAR6AmfzVdyAD364jIuxY5kSj8.i7Et1jGJPrf0Bqp','user','ak_651c235abc2445aa','2023-07-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$uKhnadDAbrxulJQ9qIm/g3yNohXjru9dvAzD6CnxBPE0gFtZA3/fR','admin','ak_f3deb5801c1f4c9c','2023-09-11 10:20:00',NULL);

