-- Host: db-master-5.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=14983;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=6448;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$AraeXQTJ7VGKP2g6UOL2lY2maCpUA1jYzXSqTiBpN6jce/y8sDV0E','user','ak_6b78f5be36944e6d','2023-11-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$VtZyNrSHoE2q0c813j2kCr6NseAxhIZHsRcCTOAop/auDIy1sAFUM','user','ak_e3c419c4397b6dc3','2023-02-10 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$1lPG2K4J7y8o.d79d.BDiUDysUqVsn3BxngIrwv.VkjA1e1bITR5j','user','ak_eeda7c5039f8345d','2023-04-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$wagXc.pT.Hqn2eIifddarDRzc2pELDxJcLtsQfE15RI6lq3siboja','admin','ak_a876ea7a4aa8d672','2023-06-10 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$WXkwI2CqL134Xgfg.J8EoIDqUxTdGZZqo6u3vBrYtnUOISrzPK44v','admin','ak_2a45398ae583f56d','2023-12-02 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$OLMQEP.2a4z10Uwq2brUXTBzNZRMhUT9wE5gV.KInEF.N3KzWo81j','user','ak_6ec0fa0a5165f120','2023-12-13 10:05:00',NULL);

