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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$zrjpwNFe8GMxjVHhMSb6NlqLqDPelxbw9KsM0fTMsJHVhH7i/KvF7','user','ak_5749a30b55813ca6','2023-05-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$a8ABw9se4F7.TwpTOk6AUU8UMRJNYZlbFy/xIOVYM2VFh1C6gI5/E','user','ak_b9eeb2b35c4b7a17','2023-10-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$wa7AYVocAGSFsGvnyTcVgFyLsqsH2XDgjLC1XL2xHCLGIdRUNvIHF','user','ak_7b083ee95f4ca5ec','2023-11-18 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$MDglWWsmHl4Gd9WEWRdSmiWYqnIKHOx3zWaPA3k9iKnlMondhXrZR','user','ak_4935df919807ac1a','2023-04-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$OWVaBKPBgewd0029zXYyIjy1WRyaSKGKlLi.2pRmxpXYnoDI60ZBv','user','ak_048871e47f8b2b24','2023-05-24 10:13:00',NULL);

