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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$YBWOLTSwtqhXNV4oIbIRvxA9vZ0lU/2tZp3luRmfD22Fz/J8a6i/u','admin','ak_261b913f59aceea3','2023-07-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Hq.PTkpyr5hGYiEYeCI6V6/E8acZmXZHWo5OTcce7jZmarcleAJd7','user','ak_d910099a19cb2fe7','2023-02-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$rLdoF52ueWtnDtnZ/PecEQw92mtbGSME3SWTEjUbNYWJ4ZrXqCxP8','admin','ak_4177587a12ce1b3d','2023-11-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$O1Dka02bRiUPXrm.FWlaP61isOS8YvAc09Todof4gkA9MHXZdRwuU','user','ak_e50fe2e1af2d314d','2023-01-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$50lu83vL7Che.MoLFocUCFzLKi8QT5PJHpeZSWnvJBnbLUUQgKUJQ','user','ak_f7ffd9c090ca4b2f','2023-12-22 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$qoElgPoDchNNO/v2HB0fkDg8XBtFIWRf8kVtOSOZPBp9cHh4cPorD','user','ak_32439470db019963','2023-06-23 10:15:00',NULL);

