-- Host: db-master-1.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=8741;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.cDwwiiKvQX5kyCpg1e3.ZUyW8IimYi/1cgkGgfrsEkTl0NbdW7tm','user','ak_c9621cbe78b3ab92','2023-11-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$1dElo0xoTfxzd0RFneBUPVnVZezpjS4CxKp0bTXKRkZEyhsDegmiL','user','ak_c05db3c69ba35139','2023-04-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$0rkD/SIBa17delv5hkfrqYQ9M2slXEg4jchhhQ9O98mcrBCInJwGV','user','ak_ec3d56a7f6f7a3fd','2023-01-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$igFbEC/PnXpAlBb30yMOUAWBs.WB/cQFTZ0yUNR75.C8KjArNQllb','admin','ak_57ce223eb9c0ea4f','2023-07-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Bef58yEKYL2Z2BBg9yOjea7Dji2SoCMPIn7cXwj9k5jTa0H51IH.M','user','ak_00c36346d5e704fd','2023-12-05 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$frIjrTZ.QD90Cb.u7PZmYvrQ4Yp9nTxlveKMEB5T74HoMIjbcV/7y','user','ak_e331cabd74ed2974','2023-08-27 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$Ee6oZu4w4ZuZSuONL3tp6YE1G7kkDZ.Hl7dP5gnZK3AISVGBmfKJS','user','ak_c8fe991f7673a822','2023-04-20 10:15:00',NULL);

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

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


