-- Host: db-master-9.internal    Database: ecommerce


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=17786;

--
-- Dumping data for table `sessions`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$tKV11MLW2tNdKTt.LzZdkPtdXkM/pOH7VtQiz5ARYnGB6xNmZsz5n','admin','ak_8aaa680f074e887e','2023-08-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$EXvq5AYd2rb/e3xCijPJT7LQKJX7rNbN/S8r9vQaejNTDXbb.5atz','admin','ak_432df2396483db5f','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$pZ9jrWaqsU1wVvLCxDvEwFQJ27Sb.AB1pjE1WUVSRQhTOjkaYdl9t','admin','ak_c502bde395b078e5','2023-07-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$tufGkMbtrF448KZRYTf/vR7jqvMSbFVsnl2YixMeu4s4OzijTQWK2','user','ak_84a506cc0fd78f43','2023-11-19 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$6tIKB4RNsx0ZcQXTA3Dbnx0CdyqlSIhHa6mzH.A6ysmD8SH0ieI66','user','ak_46e47c4892284c2a','2023-11-19 10:01:00',NULL);

