-- Host: db-master-5.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=28844;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$SkdxTK6d5reeSriXz.nIkaXZUl53BCvNojgir1aB1CzO2KR7l2u59','user','ak_fffa35b4127c5bc9','2023-02-12 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$zLIx.QqoB5m9vPAjHXE2slcf7IaRwFVDp1S1QdgWFa0fW5TShpUND','user','ak_bc4f91b644a1c31d','2023-01-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$RAB/Q16.KzESfrBZjQFOVphzQrLhlzuRQEKYUKw5j4TYOKBf4nUd6','admin','ak_a4e282aa369c8cc2','2023-06-19 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$JlSuVVvd6yHaccPIbpOMse3/ogBtIBtJEkDjrxhtJa.wJ4DnNhF.3','user','ak_5f68bd0416d48a4a','2023-09-09 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$hSMKnl7n2qBepkuY6O7fXTJ.s.Qz4Ymms.XB0Rwqh3FMI2Hxjm8D8','admin','ak_bf549d490cf3e991','2023-06-13 10:03: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=1962;

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


