-- Host: db-master-9.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=21082;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$0mjGI2e8hRvbsFc2CInh9PeNrAQ7K5e66opBNZsQD.TzabiBsX/0A','user','ak_d409a9aa15a09988','2023-12-27 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$scj1vy3.GyL1P8ElibFUJmsn3aQ6gBbzAijA9tCQTiMfWDepQsJXJ','user','ak_09dfd22b8270c1e2','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$OWmcOm1Lj2z1SKygtB7CTT8t5h5zJlxAABI/WW/sslUL1AzpO2VEB','user','ak_6084ee2531364da0','2023-09-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$zHTxHxcKQAi2S.0OZLDjik3fTBzdBvQDIPLUNGI6xBb9.CWMeNnaZ','user','ak_174e536cc093e026','2023-11-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$r5Bh2ZuWQKl6HEv2FlfJzqDn1LRstMqFPIEnUPMkeDwV9OYICqW40','admin','ak_8ed8db7f2ee6b162','2023-02-14 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$oMWX9v74XtIPjV9neZhBN7hMAUS49bWOx.Gc6RN3BnbwQH9jTFtYM','admin','ak_897bfe7171058088','2023-02-03 10:08:00',NULL);

