-- Host: db-master-6.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=44544;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$muXBBoWX1Mqg2OBWO6mczCo/GY4GOPIU2OkVJJ.cPFatkCetBAUD9','user','ak_82d4fe7c3ee17007','2023-09-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$iOrcoGLufMykDA7M.FegXgbxyMLCCARPJftQjmjOmBkCoYT46CD0F','user','ak_e4506d71c775e1ab','2023-02-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$xrMSHxUuRANzlTaR1wJoj3KnwDomk0x.g9io8pJXBJPRBKgO79Lub','user','ak_1ffee5c9c5dde6cc','2023-11-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Q1kR07Li0oP1lxfV8EUjFu56oEhKj09/LzRRe2iNP8OY6Zfln/5C.','user','ak_3a7bbdaf7e3a273b','2023-07-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$SgY7803HYZPcmEltuTUVC2ZKNcrJTZmpoFpJGX/NtbV5S.qARhTjj','user','ak_36b81adf9b8479f7','2023-03-15 10:17:00',NULL);

