-- Host: db-master-8.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=22153;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$/65BFwqEiAsablMhZ7TpIPaAGZOrQcXcB9WeMzQN6H/E58uesIoIj','user','ak_bb2a2dbb88bca2d4','2023-09-22 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$7r8VkjuvKs/EcWP7UKWFLe1VIapeV54GRXGfe1fnMCMfPpa8AITnZ','user','ak_2e53614624510fd2','2023-11-09 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$cuz6c0tyeybyxI3OqpQelIUFsD.CjvpELqFF9EqAeUUDBaAYy5RFt','admin','ak_b6d3ebcc5ed4d0d9','2023-06-10 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$c30iDlkAUeTXVTyCHsdjziyKp5sB50y4As6tY5u954YO9sD4Es66e','user','ak_becceb4c83bc5499','2023-02-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$0CjXNY7eb8FIZ9ytK21z6g4X8v.4Vm2CaGasCpYeb15JPl9TOrSdb','user','ak_e7402fd16e1ddc53','2023-04-19 10:12: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=5162;

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


