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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$6FtfSyifsYXaw3CdVRDQ7.5QniOL/yUmdMbH6GEvZxeELnROD.ivD','user','ak_c15a6741f7872c18','2023-03-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$QGG6N7P8kGXbw7IsU06ZYsNS77FA4A9SB9NdbgOw4EzeLXpnBndHo','user','ak_2a4db24060a4ea2f','2023-12-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$RafulxDCgGJRRY1yJIhj41SBiLbouKSao7SQZriXYuj80G1Z8Vgt2','user','ak_50c64a56cfff180a','2023-11-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$7AAsAa2l89tcAiQ5kwDMl8XiEPFr3eteZj7V7RYht4gv9qDm08L4l','admin','ak_2b13d9cd8b126783','2023-06-12 10:04:00',NULL);

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

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


