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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$2UZPNhtme9eRJvikIVEs/i2HOhk04XYBa.zfo7/6hA1acwOJs3niM','user','ak_449db2762250fcde','2023-10-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$ZSOi/Zqw6q3Pz1Xc2f7IQpWXxD2565SJcltbj22HOhcDiQbbzzxIb','user','ak_563ea307cdf5bae1','2023-01-11 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$TV.sm/ayqLFvlZGx01eGwS51Sqyj8iLyxMDyrwufrVuIrQBLuyX4E','user','ak_b59a8b5dae2c8295','2023-07-05 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$oNH9c1.Ci/PSoXtMP2cbgQ4Wk4kb9ZTfGXQcp6ZYLv9JVBHyv55vW','user','ak_363f7d02a644c102','2023-12-04 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$XbTaQw3FV4Pd0tQfW/hTcko06N1JggpXr5kRk90e0IaaOAUUlgTbU','user','ak_0fe47fb6dbb9383b','2023-06-12 10:17: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=20987;

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


