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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$PphFveURguP8zea7t8WWCoBncmsZNYq0bDOqDzXxtKaXTNIZLpZ31','admin','ak_958325e13445c65f','2023-04-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$HWgGEkpTB9.v65DKvDQLP4HNWd4ZoU7cBaI1XMIj3YJ4LQi8edxom','user','ak_5abeaa2eac486d3c','2023-02-26 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$W2IQU9JT2Ku1yOihV68VCN3ri6vWxFVhSXOVs4yI3MYF4nyUeEctb','user','ak_2b3c11d3ee1d1d70','2023-12-12 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$.AezXIpg2wibAIZBCzLGLGK.2ROZ.RJc2YbBriCS/X.4AKgKVMGu9','user','ak_614cc4e6f512b512','2023-06-27 10:17:00',NULL);

