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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$weNxLif3MLMySFuVwALJ1W.z/ELCcukcIPK0Hn2QkLsG9ex4SzfQK','admin','ak_b0b3098bb116257d','2023-06-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ZetI7kl47fFTbHYeSNOsBjNFTHsSq3jGGbCcT/6d3g2S2c5whoGRv','user','ak_acd04c99d261eaca','2023-04-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$quOHavlIRlIzcoYHwEBj.AGh3aN3R3Ti7/nQAHsHRWyI21pSCVhi5','user','ak_6ac027d81403cc9c','2023-02-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$n1b9/WGESS0OwmSflIoRM4XBJs.niFYwOiKSz6KPctcJupHiDiRjY','admin','ak_4fda279a082957d6','2023-02-10 10:18:00',NULL);

