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

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$QoHIEXnZvn28luHNWdW8rn9oKQ7IfTZf.l.nm/ydU41Wvyqt4wr97','user','ak_3258ea44ee5c1ffc','2023-11-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$bejobTLEHOD8oLxSV4AqC.pV/UXf1jxH84NM0nssxuQ9N9kptcVKT','user','ak_465edc4a7fed4fff','2023-08-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$MRAlPooqB0OeZ0.K1hU5x0tRG45hTkCKBnWc0opTpYsd3qdk.nENr','user','ak_befaaef4bf87b3c9','2023-03-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$hRLB4Iqkph7g3QlmMlAeKr9P4H2olIRzza/FP/W6yu/YgvO/rJirh','admin','ak_64be0dacb505083b','2023-04-11 10:16:00',NULL);

