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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$213hJt/Kfx69PEwKl1LE5pOxGQfriJKtY09ShgHf3tmhf87uN0sWo','user','ak_09feb3853cccdd4a','2023-03-28 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$pT7xb1P.jhhSak1ILZ5/WoJgctW9j2dkRoOt.cZNwFlFbtVwylDof','admin','ak_3d7a663df4f3ab5e','2023-10-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$M7/VYPSidXYorVnNL5Jh/LyIHZvRPnyaRo3CscJmYOc05MpvyYRVe','user','ak_ad6ee2a0844ad617','2023-07-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$r3FIVE75sn2R.Ltru/QgIdjheOATyriAHDeWbjU.Ce/MAO/md2s/K','user','ak_81af80db6ecb9aae','2023-11-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$kILAzp8d9YKbvT3ApIb93ROquerKyTkRO.7Gf8nD/S4KQ8H3CysdO','user','ak_9aafc39508b76057','2023-03-19 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$1VQIGsGBnUm5kuSqU/2SfMSRZjxBUl9UROymxM5Pbq3hxsK7GwNor','admin','ak_69052c1c528d3e85','2023-07-13 10:10: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=10336;

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


