-- Host: db-master-1.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$w5WwrQS56hYeEVP0hvgsF5SeiH6QglzIoDsEQ16uH9EeSsET9ycb2','admin','ak_ece1a55bb66779a3','2023-11-13 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$z4Qfk22HOYgMh/wY8GIidzdGhEX0EMKP2PPKXvoQpPc/BBrCwuk90','admin','ak_e830df3d5bb689ed','2023-08-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$BaL2aa0KNX8mpmlzvMDjGMk/ZSMGdSYj.mGbyILgr2aFsNtjRNQR6','user','ak_7a147d3cae169582','2023-05-21 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Ap954HInZxBUQs1R/yA7o1umd8YwBy5dWubeEZjTheoLvHVKmYV5O','user','ak_ae66e1c0d97079b9','2023-06-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$RfA4dvTb7cIMYeLXfYS6Ezl2uwMinfES6jnovVMIPgrCYkrGZrsx0','user','ak_30171bd8d7f5a82b','2023-03-08 10:07:00',NULL);

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

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


