-- Host: db-master-2.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=5566;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Ooq7XJh7MI5Ms41O1QLNvQU23FNqPtzWu334u2UoyYR8hPKAXISAq','user','ak_6e3bed42aed206f4','2023-03-26 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$xrcByAZS2zJw9mnI9tAHF6FjXfvzMUtCxXOAkIZWX4qt4cMCsg8Nb','admin','ak_8cdf45049fea1a42','2023-10-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$BbfVTcoRuSjCcA6Ug/lXPLs6Xp1kDImdi1Wuh/Iha1NsMQO4GZOqb','admin','ak_efa4b23be5914791','2023-09-07 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$Ns.Ky6BwUmNk5j9LSaE9GDLbe3sJgOxW.nzWa.Ffnyb8CtE1EyeDI','user','ak_365bce5db6f33cdd','2023-09-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$ug8yphgt.blQ84ESnwBS3Walx6KZFhm53E7JKHz1KgbdhuVn8nlRs','admin','ak_90814e3e7b3bcb07','2023-07-06 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=12666;

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


