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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$7kA3TLtkbEfWaM5v.LB3nSTMYMRsgGz/hVM.u.2Zv8sQzr36DOR/N','admin','ak_da2768bab0b70670','2023-01-25 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$zPXbfA5ORfsYgQ6uHlo7u6SfSn1fevm1qkMwNnmHBnr19WiTpibzK','admin','ak_41f2c02c8e2477d1','2023-07-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Zl1FnrRsRfadQxQPYslkWIyAxlEsLj7ZAPXlt0uXggF0jpLa8TcJ/','user','ak_4d1c53f19934b84a','2023-10-27 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$lSxlC/IV9hJk6SA7BqgOZMIsezNqeqCJq.ERTv9KJgRTrVXXtJBEv','user','ak_69865e2f14bf6ff8','2023-02-27 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ABeo3i1asRb.z6zppr6Pe4GQMKg3cpZdZL1pl9R1tqMT1qlcjhOkY','admin','ak_5aa63b2808bc92d0','2023-03-02 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$RnUALhmTpetmdK043FUJVEj2s9UMqiChfKIBU0H0bJ1qiCrntB70Z','user','ak_63cc0c79a0479aa7','2023-04-14 10:07:00',NULL);

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

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


