-- Host: db-master-4.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$os5XY.jRCrwy1YWVf1cniQTEIDz9M0nBPpdyBVwUlM3vK5zw9TZb9','user','ak_214a726dd797dbad','2023-08-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$nbljfeoeIitiUk0oC2HUP3MU/eb.8V7rZkSZHhAj0woejdX7ft54N','user','ak_c107114b571af150','2023-07-26 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$uL9KEgQjU5f4BGOL0C5DxanyAvvJRG0eGN/BiLeWgRP6TCkM7pKr0','user','ak_af37eedabf472e8c','2023-12-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$SGuyOkR.3UxMkEsrhVv8fM7t2vTvfTK/Cp/3RaGWM4aE42FnVdjeJ','admin','ak_3aee64881019320a','2023-01-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$xZWphQVj4/0zWbYzRyp2T2HrxjEVpz/ybcglkA.LT0ztwLnAciEjr','user','ak_a3d50e8c16781900','2023-01-28 10:19: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=46841;

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


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

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


