-- Host: db-master-4.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=4465;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$QsAScgzF6XFxm3nZjA5xu6k9P.YWAsneXcUT6AlZ7tX6vvYvwmLvE','user','ak_b3c4fcfec1c7e5ed','2023-04-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$2FabN7MWIVdepL78UHwtEdf6zXwcVRdGEX6pXE4kQYestawVcSC.t','user','ak_32e2f7bb3ce2bd9e','2023-09-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$2D6TEJtCKcUN8yGIxrk5SafkASjvaKDAnT2W3xcOexU2E2hcJz2ar','admin','ak_910ea457af1ea38b','2023-01-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$njBTLbfy1RTHWpaL/w7bvwpv/FLX3eO2mMQLV9CQO6Yx/uJNA9Clg','user','ak_a61808c880aa8c09','2023-04-28 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$wmSHXJk/K.QzE/RYx3QivGiWkefQC9KGOQEcbvxDZn3h8tgRergZY','user','ak_51372229440ec470','2023-09-24 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$D5Ex4zcEG/LN8uBN1I9OWAotdKbGcDMH/Wr/.pZfG8JguxCj8XQQ5','user','ak_e21c85a0d5ee2245','2023-10-18 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$ZwxHV9r6pftxwKvuWqk23wUT2FMgln8YIA6Z5keZmkhEwTFdvUE.h','admin','ak_6fc9d8831901d7d2','2023-07-01 10:03:00',NULL);

