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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$7pJ5gTLAf23DKNlWiHQMVN2fjaK67S7Pc8nWW6sPLnJHy0gCqsfs.','user','ak_9636962c2751df61','2023-05-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$kiDGp1DALmYhleIuO6y5KGFyc48G4blOYwf26EIbXZr6aOlFFYb2D','user','ak_2ced85d71bf3bc9f','2023-09-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$AX1OZTlJk1nVitW5gb1mqq.bmlJgxLbolhUcvp4Gmt6e.5rqLTVo5','user','ak_7a1e3a96e2d32349','2023-06-20 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$3wXP3WiZMpiVkhAJmSYfTahQQBk/3kkrVUAY6m0/ZEb5o403TxXbE','user','ak_31a00d0dda5ab873','2023-08-07 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$7OZoWmHJbZfwlrIOIDg0IxSj9I.HJhBqMofZniLGMVInLeOC6y8Nd','user','ak_bfbac1ee6a85101b','2023-09-13 10:10:00',NULL);

