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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$QEsgt/2PVEE6G1NqwJG2iN.Ai3ME0XYsNu6kWfFj/rVrexWH/750y','user','ak_bd7f7d455dc7d063','2023-04-19 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$12p0IZATApb0VmH2xJnoQoZdYAPRDumlsHYHnSwCqgGGqsJXP9.vf','user','ak_a5c62ddb16a391be','2023-05-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$6WQdvpN9GyQhaTqXqutA./tQeZ7uk1IBC0zgKErI3PZjqZ0utIMVi','admin','ak_1356959525eef30e','2023-05-03 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$N6.MWiBEJ7.P/guBaSo59oR5mX5/NXv/e7LkkVdB7.2M1zi0Md6UB','user','ak_107e9dd0becc4bb8','2023-07-17 10:20: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=27394;

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


