-- Host: db-master-2.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=48610;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$z/myQK/EwKZNHmuv.1tgJsluRbijOeQdpvcTCuW88wtmlo/jFEW/7','user','ak_75053bb7247214a6','2023-03-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$mA.6Rax/MP8qQKYGWrD8crTQX.r3Pfogyt9GmhJB198UZyqI47yX6','user','ak_cc94d3cdf08c7a33','2023-09-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$6xw.fwU7zs3GkooVu9t0q4qsZhP9JDSq2dfwcJfOKyAFB5o5jX6rL','user','ak_382272cdcd64bae1','2023-12-24 10:07: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=35902;

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


