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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$NRiscPcakoy9GyqaZg6BkEw82iuVBp4pyAajFWdiyq6ZPBwYp8qGQ','user','ak_92b65e3adac5dffc','2023-07-19 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$TAzojEB6AKTfkrQzYZa1xG0GsI9zVu9QvQfmnACI.AP9cMVt3.q3l','user','ak_4926c942d8b479b1','2023-04-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$mEo4dvXZKkzvx5Y9xP2zXyX6JtlrgJCIm53Zx46ZErLOsbBrPoDBe','user','ak_2d56aacda8a210bc','2023-06-24 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$KgEh5Ivh9ksSxS/EgjdZ0s.T/ZCTlRluPKXIMSYQEvlWGiSUB6xoQ','user','ak_ffa9011936c36eb2','2023-05-27 10:01: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=4050;

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


