-- Host: db-master-3.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=32744;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$XeefzH/LxtppvbS0oQ2sNHBS6/w3G8fzcJvuo7i454/0F3kohLKdx','admin','ak_aecb3e269d6d2b83','2023-07-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$t5SDsSbbhv3Ejarm0xTG0VxEw.BMEwivy8dffLY2Z5.WmbU7mkzsO','user','ak_ea4f3807ddd1c5f9','2023-10-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$ptjnP4stXyIaxl49JbJRmo7NUkRFfm1jwrZTeE5ceXazfADg0ehuM','user','ak_a5bf210f9e251ce7','2023-03-21 10:00: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=7481;

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


