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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$hD0mmj477y6w2HNHhbUc4NzZCYiRsQaYwqMcF1U.pMQ9.kWyiqYoA','user','ak_ee21ce32267add82','2023-02-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$RBKkkGYN5nU4YmdichBQ2UQ3prq6YcEXCED9aIGhTKxqYn0swfVM0','admin','ak_3819dc8c33aae435','2023-10-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$1YBVd9811ZtsM.B/J7l6b9i7lgbbFOOaAxl/M494wsCU7RvMxiPDR','user','ak_eca48d717782fc50','2023-10-28 10:04: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=20123;

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


