-- Host: db-master-2.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=5167;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$3iT4H.Z3XxX2FO9uyw5uQoiop81hr4VTF2neVz76NQrG0X/06lWvK','user','ak_3262f06447d221f7','2023-05-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$9bIYVIH8ycd8F3CBFeHZLFmfEP6BzID0ezp/nTmptFN3GVrpooJNn','admin','ak_c469c294f3bdfb73','2023-01-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$r3GgSZPe2PhYFKOoE2Re7nBUyMRB7jqtpd1p6ZRWWW0mPvYfRX7DI','user','ak_0f35e1f63fe60d3d','2023-07-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$e4vEQPoaGxIc2ckXiTfADYrhGfCCBbUpW2PaaKbBDSKuKct4b8vtJ','admin','ak_2168013ac9b23239','2023-12-17 10:15:00',NULL);

