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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$VmIZNQJd7.rWYr4SCChLlSoN.loapHCGj95g3H1qV/3wc.njdbxOy','user','ak_649aba999592dae2','2023-09-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$4t7cUqKi0PphmL3weKCqUNBAxZTsxlqc7JtPF9wriS5/4kBwMLONw','admin','ak_28753d22bcbaea7c','2023-07-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$4xAPMpmfBYacfpITQotVLxDxrAJoesoXduQUHrVyzooMs2wqbqo0f','user','ak_6bfe325d59400c37','2023-02-25 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$aU64kICJRkSuH3viGE1oyDzoQ1kbYRSXl4OhMRU9u7npNlepc2kmI','admin','ak_e564b4cad2b0fc12','2023-09-14 10:12: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=28884;

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

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


