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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$kxBVw/CIHA3ld5.YwV8oN5mQ3SP1mJ1HrGD1En9gOtUo.iBKZcX3m','user','ak_5d5c253d5ca9e21c','2023-02-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$OtG5fQdsW/VWIB2/cLRQRyuxEApOYDn6rx33XERCOAbYIjElj9OIY','user','ak_2490d5619bfcd6c9','2023-12-27 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$IFSQ6mKoLBb2vpvRceQh7raP3wYrwk1Jx/3PuLlmfm5xiQ0bz9JJC','user','ak_3e2f527ef43ffdad','2023-12-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$uShfxvPGSb58vwEpYJ72YZDYNSqgB/iHqUrJNrCRLXo28oIOpgt.u','user','ak_1e38826f66679862','2023-02-01 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$GBApvaG3LR3J/eHXvRvLojMepb6cZlQCM2E2EirY2lZbxx6q2rUY9','user','ak_15af40d3302dbd07','2023-11-16 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$sKrN6VBqt4N7kIjleyfa/RmM4t9QMzE9JI4TSshDRnIciiPNoHlDN','user','ak_61cd16ad178366a7','2023-03-12 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$GBQ0LFvev0IIKioJycCzOC7N1JCZlHNYdxMaYEjRWHRZsiK3sBsps','user','ak_66ffb167a853242d','2023-02-02 10:12:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=39161;

--
-- Dumping data for table `products`
--


