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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$gNA8kToAAaAzBujbGhnuR6ncxoYWk3bGx.PGS3Jha4y/Bju6gVKKN','user','ak_1546364aa12219cd','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$GfAFgrWb/hPTtwH80fS/OJ8whVF7jearbcLxLjdm.GCJ/VSzpkB5b','admin','ak_e85d8e7a57a0a057','2023-09-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$r1dtiU.LDuG7LaowkvKW8uxGIKm1lP8nmk7jcsj0j7C9CuRx.tpW0','admin','ak_0a8dcd238ffd771e','2023-02-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$Xul4dp..rxhCxY0so6h2RmgYOPJhznKbqp0/4vwvaRjyT6FUCe8vP','user','ak_6679581f77f8350d','2023-04-18 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$1CIGYJ/hBeawT1FJv3U0rXGbNSpeVxHlu8JSqdbEDnn/oj5U9wqNJ','user','ak_be3c7f12ab2ac15e','2023-09-26 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$QUTqaYxyzdmb51SjyTEo5mqujrsiEKEUSpoJEZjqMXZvAUJrhpYrt','user','ak_6186aee80a226711','2023-03-15 10:03: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=28992;

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

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


