-- Host: db-master-9.internal    Database: webapp_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=40220;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$OT0g1MS799nE/KIMoe/AHyE8v7YrkBT8G9bs3gHT5mm7go954JsnU','user','ak_2f5ed709f29d0b36','2023-02-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$8x/JYD0z3kbEiWyPdfqExnsU1PQVwj50yoZGdqvK57Hh3CmLS0qq/','user','ak_5923e6a00f5fb645','2023-12-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$pUs5vFq.RTA0DgmJycugQI2rRi.1VXfEvkoF750dyuJrl2ndwv4hH','user','ak_55182c1971b31e2a','2023-10-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$MoBVgqd90Xi6O.IaHLt0T2OXlfzwwqXmZFX8St.ouD1iugnh3D5At','admin','ak_f694552aa1acd294','2023-01-19 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$7PnZTAQ0YwdnHOLUElBr92/qEa77LOl5SeXCfBXjHZCSm6QzfODpX','admin','ak_8f01dd64b94daf12','2023-04-03 10:11:00',NULL);

