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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Ab1.0VgnmPbUJxs2/Pc1FDrLOq8Jb6XbdhXcs5OAExML.EE86pf6Y','admin','ak_c5b8aa261955230e','2023-05-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$rc6p1fY3D.rHN.6VGMtCsYJ7FKzzo8LALdXwu8AJwezSStLe9VBwU','admin','ak_8b4d4a412461dd63','2023-10-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$aB7oRsBZmLY73hctBegaGUYGn41cfkvO.eqF4jpHhcqUCUrENJmcC','user','ak_78476220c0043135','2023-12-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$uWtdFmrbsKRCiOp9QBy.nR9W8GZrFt4KW.wc3BOa1BV6VLI18sxwP','user','ak_bfddefe44cd05217','2023-10-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$8F0I3cbv./6cwucEc8CQ.qa6ZwEjMKQWWe964FTdCvGmv8WAEe11C','user','ak_850aaeaf4fab1c67','2023-05-09 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$4t899d5maB9B4LsV1jWT9o0z9MZxzX2VDBrGTXLmFOb3XbQB1YV8K','user','ak_f39388591c450e45','2023-02-01 10:21:00',NULL);

