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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$lA6dBUXqiJbYkDGDXLJVjqNmqm8w2FCqx3xV8a0RWtndFNwipd6ji','admin','ak_bc0402f1fb9c69a3','2023-06-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$mU.bjf6iIFQMNgkuBOxkdOUn7KG/tv/FvwVU1/8ESiJSMDKeIFhV3','user','ak_9f06972814cdef11','2023-03-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$j8c75ACHIfCN4oXemqUTaobohSme6bwvdkbNFyCS21GGtCQ2IQ7LC','admin','ak_b88699ba0345b342','2023-08-01 10:19: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=8360;

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


