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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$FPTGBrZyuvEegeC4TI9IPArUIX.cjkQggv2GwBcAXVUq.pxultuJ3','user','ak_4fad2efe6b99e072','2023-09-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$OGgxCbyEGlpd2y6VWvDJRbxrShQMGCyjRAS9tSRkBkkyyWxRUL8SI','user','ak_cfc33c204dd51987','2023-09-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$9Hh7PR13c6DdxnE3UCfAG1Fd1KJli8BL9e1aP8QDg4EFkmWJO25F/','user','ak_0a1dd130b2ceb86c','2023-09-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$Ao02t9Y/KOQSLsb7Bu38kT9yNgLLSuB4p5m6zYDOZG2bZhQrgkjyZ','admin','ak_740add4e47585fc6','2023-03-16 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$wBY6YWcLDvxXGVeFkIcj8gS/gfpOImH7EeyOotb8bdEFjgJr3tEEu','admin','ak_3f333393bc3d2365','2023-12-25 10:17:00',NULL);

