-- Host: db-master-6.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$H0giGqK6DsCxj4GGoGbE4pYxCA1pHK9lu.4mwgr6jFjuEgySpymWz','user','ak_430594536b4da79f','2023-08-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$FmFdCFXgxde29P.P6cUtoBsDnygBQ3/U1RQJT5aXYKEI/QEEfpG8o','admin','ak_769359c46bb7b3e0','2023-05-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$XrU7KND24NMJQuUrT8ekAtvcEDBCE7DFUk7lKKNKV3CaHYNmo.DKF','admin','ak_b719c26ccc312572','2023-02-27 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$K.dM8/PMk6UboAmPpD4wRGDPgWGBK2sdfVC6pP.fj.npOz5/oGyvP','user','ak_499d3b04247f5b77','2023-02-10 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$86sJJq03jEDqefqKdID4NeOgNNM/4p1GTXwYUTm/SZyiFx1GVcguU','user','ak_edf8353bd7891b84','2023-05-25 10:21: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=15807;

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


