-- Host: db-master-9.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$m2hZf9XDhtZPFDmfgoIyl6DEKhadICWioObWt74R7d/PfAEitISSA','user','ak_9d7bdf33014f2f8f','2023-11-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$fMzsi4SgmpwFzdTmKFiqUGpIOr72lYiNH2jRft2DDrkWJfIWsfmm0','user','ak_3c01d9a620417e26','2023-06-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$i9.rbW1109lmZOhvToiNB8yZq/tRhcf1KHl7XGtrigJivoN3rDLwK','user','ak_b15cfbb8066a7149','2023-09-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$a.xP09olPt/PHk1heqLHjuQMrNHL/fO/g3kKCsp8fLqrmzo9S2.Ml','user','ak_cd36ea15f69b47d7','2023-06-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Zx2oHSWGzcTNs.nNcikq78sZ/EPQQG4qxxp6gVw5hqdkI.UryMRpI','user','ak_215879f095722efd','2023-08-06 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$Rdauc3/KOGUDFbZV9tg4TW.dClG/6I8ZocvmeBBOxJED.cG3yxqTu','user','ak_0ca3a34f57ff8389','2023-09-20 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$Af/VprRPvuvOyTegq.CvOExLdk6TCw1O0Hvq/Gw8JZmShmycHKATQ','user','ak_71712556e3efb067','2023-06-28 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=39355;

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


