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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$/SXGBHYkWRbSSbcXEaRlehK7D/YOfmsYj5zf1T21Y1bdKKeBGJrbC','admin','ak_4ca7569feed71453','2023-06-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ZcMYm3euNXnMJZqiYK0V02HsUzHk.XdkibBv60O2v4EB56wqxSyoS','admin','ak_b296e2804f124e28','2023-01-03 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$fnK0XLol7vBSeOIWsVYpPowjRq9G97Es1qWb9jFc/aoxVgm.9z2cX','admin','ak_8190e5c880c3e634','2023-06-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$9xf6ZraIneHM0Vh/GUYAJmVlQpgilns6HrD6C.r2bFme9Td2..lBX','user','ak_6451184e6c1dad57','2023-12-20 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$ytMcMj3hAtpgGax5ZmUNmCvWIIRoevjad5hYSRfxFm8gZxhXMKp.S','user','ak_a82a0099e4af6dd1','2023-01-14 10:10: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=32602;

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

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


