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


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$okdHmw3hz.oFDYe0szJs7ALjxn.OtNtOWBQNJoMZZcXUmgETp65jC','admin','ak_660e5548a9bacaab','2023-07-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$p.SEeI4c7pYvIfARcYwSKgR/EgFyuoRl8XCImN6TLa9Q1KRjrsnYc','user','ak_5b506f09e462709e','2023-03-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$wxLHdFSTlWg01/tlzMCuKV9nSmcg08rk.pUTNvSFP/j2/h0zOBcVJ','user','ak_796a6a294abba8b2','2023-06-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$GEsA5goQyOZ5TbOB.16vifxUWEt2WeDaIsioDp0oJMhgadL1dE0VI','admin','ak_b9ec281c3da993e1','2023-06-01 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gO6lATOL3RV9YxIHYzHkh0N0xgqNg6tyA8NZonIAz35DzTCgFK.gK','admin','ak_5ca5a4633aa4e048','2023-06-03 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$5L3sTC8umTDcNaNOimDRMiTC73XCcZUdrazIyUNQFByFTcQ6L4hFa','user','ak_aaf4a500e57f6d95','2023-02-13 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@example.org','$2b$12$MWfwNc50MQdNFM6k0/ZOnaFVgaH.hoi85qcEnOshOgygMp0uUvzmh','admin','ak_498287518facd160','2023-05-15 10:20:00',NULL);

