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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$AxEU4qqonnw8jwZML1jLBMHg2ozWUdIEObF9eZBLQgn/WwtI5nUKy','user','ak_6902af08934e1b66','2023-04-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$GKjZNABzZodtiCQNXRYd0yavj2SBdm11q2LqRKj9y5P2cYuEJH.17','user','ak_94be624e190fa456','2023-11-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$f74X5ki7pdOsVmfz8ZL5gMa3qlebMNRPzC4Hlq1Ja3UQoY4RDsgiR','admin','ak_d1444eedc6de058d','2023-03-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$et9KEssG6fq9BiNo4HiOLwgoUt9m44P8U.FKIWY2fuC3IAIEUi2PK','user','ak_4354589f63d56045','2023-06-10 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$6GGG.RxsQSC5gYVEHe7mYgTabkhPPI1hjlAdo2Z3leraU.l3dKFWj','user','ak_2cf224cbfc57ccfb','2023-05-04 10:23:00',NULL);

