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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$NeJgIHVLWgfQyfw7817w.sAtZamjpNphpfH3X2DNTlUiYrrewzrav','admin','ak_1d07b6174b86b443','2023-02-20 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$sucwRcJv25jMy9pU.Ur9/VN4YRceTjph3rG8tl2Wvdm6H1GhGGshD','admin','ak_6233317ed9e189c5','2023-04-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MBJbKdY34t6COM7auXyY2W.vl1PZuFmfu3G09/pgui4Ux4rBFHyCt','admin','ak_98594203833865e3','2023-11-20 10:03: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=7451;

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


