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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ft0EsXEi4KurmYmd2udH/u/NvIbsd.O84YyAgxSlj4BnQ9yiQDKDs','admin','ak_11ac01d231acc2b6','2023-05-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$iHp.takZrMXvtzz6HhqABHjIwqmLhSd/ppZ29IG7PFPAL/.JtUTta','user','ak_60ed62bcc7ef6886','2023-12-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$euKsnKmeFPMcMzJGa3GZHByF8gA1eVxYSlGvZkhmZ5yvddn7yzbji','admin','ak_086d4dd6166e9127','2023-08-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$6xjg7TqJC5khXpq6jTv.L5wDSgO2UC.xvfNfDWRcsS3rBflEhRMda','user','ak_a5e5dc44e481c620','2023-04-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$shKLnLdUNyxemKz6F5LV5BHTFCNqNAn5tNs0s4uhYWM1HKNAfPBFs','admin','ak_a9ccc8f7f8e43c95','2023-11-09 10:21:00',NULL);

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

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

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


