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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Kvbc5cOsiE9gPCZZ0z0s.p0U0HefqUkHvzjbpjoAp2.cQhipJMKYB','admin','ak_36458f897292879c','2023-06-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$GmEDjPo07eDtpUCLOQfJBMX90ZHVTDaaXDxhGghLTzfwEDzk1zpKB','user','ak_fc7496e54aea31ff','2023-04-09 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$q.JKPHUKF87wbzf4aAPq2ap/ytsuAsDIEOZHDrgVMaj4DOHm/vJdS','user','ak_d143584b58fa4fe5','2023-08-20 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$AOVWyEZfko95uhnb/U8Ijl0MTKWOOOC38TpA6xOl.gsPHFNMybx5y','user','ak_1d8cdf7fa04ed21b','2023-05-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$0Kt/pUn1KEIHIAup07QuOeY5JOIFuMM/WNqHRSq8uTqLW2Ihb7Fa0','admin','ak_414ef72dd7046bc7','2023-02-27 10:17: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=14361;

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


