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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$vsCjnU4x7w8.aKJrUMyYiclVwP/l5PV8DVrY8EF5iLqaBcbXhIVIs','user','ak_ce4bdc8f6df4ec44','2023-08-12 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Ow/yNDTV9sc2TUMbDPMJFg2Y7Owt3QvAbHdh5O8M7qXSv.rTiR5gB','user','ak_f4d22f0cdd6e48c9','2023-11-09 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$374eWzzP.Okdr7JZNvKPOF8ZKO/4Jo.Z2/XTICXF8WBU3NHZFjnxo','user','ak_9b47c3f03b827426','2023-08-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$dvtVrdt22RvrWbSQ8QZt4CWMe4MG6Gtapd/.raHa3eETUlKSsBCYn','admin','ak_3f6b246bae516e6d','2023-01-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$zHzdo1frUSt144TJu8nukSSJe9wNQHk7/bYBHX16r39TNFqHFEy3C','user','ak_3bd46a1544d021cd','2023-06-17 10:14: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=30231;

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

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


