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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$yCo9EkGj75YQKpc1/R1DFj3kn1PCJe.6WiVJYDTb3xpVcNmgIkKLd','user','ak_de25122afaa32aa7','2023-07-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$deIkG8GKQONbEDEh/ZDEg2Rq.LIYWxW6retIrs9sn.IRfxpra30sr','user','ak_ce022b0aa8f3bdaf','2023-11-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$yKi2UlsV6sel4bB70XwruZLL937SPWdHo.w71e25zanCf3fPnF5A4','user','ak_d139b7f854e5bf0d','2023-11-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$pwooxxYs7uyiMmc.yaLUaOYMwn8DJAKqYZ9iNET62vJ6HHQBxR/KW','admin','ak_7b39f030db7a5d13','2023-03-20 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$yXMUUEHHl0zzn6F5RwyVruTuAqcpjvzP/ww/R30HCUSqSK09hF66s','user','ak_67a44454df05da45','2023-04-09 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$kGAbYsKega0nuq.JM1j9ZFx6WhJuJmROP6ut90n3C8PqxcK5ahtUv','user','ak_8679e978d63d572f','2023-07-16 10:03:00',NULL);

