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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=14505;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$dw2kuIZnRe3kogdlejgovxyPngjEel0MBNK2O3TnWKMalwOAV6LRw','user','ak_5af4a8a00076e2b5','2023-09-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$2LWh7leS.ULj40YYnuIfHxii5n1TyVfTLAxRiYj4AnFOtaR9vSwa8','admin','ak_113e0b0cc3672eed','2023-06-21 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$vSCqv7xmV7vBt7KEEYh5HBb08ipjD4MWAXrgS67xutHcKSO11nfv2','admin','ak_36cbbed5432f4f69','2023-02-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$XNkCf1OnR2p16CnvmBCKwj1FlB//yVHiW7TQ.h0VAkvuMMb8nEFOY','user','ak_45c4aba6e87bd48c','2023-03-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$VLBZ1Fegj6pIZbHcr9bUJhOET8JIF/cTd/RBzcF5ghpq1NJ.uxmWT','admin','ak_95e7e6f95b1644ec','2023-02-10 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$QUDlTBv7bSMJsdo8s/vH1LCTkLnn34cjRL8HUllc.rqm0T8cYW9H0','user','ak_7a5c922c483139ec','2023-06-13 10:06:00',NULL);

