-- Host: db-master-0.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$Fim4gB4UGGHzvcklTJICdBsPqaxU88mgw6u5Eff4aNN9CxmB6oKyg','admin','ak_fa5cde759588c1b3','2023-09-26 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Ql/s.sAVWul/DCvlXmJn7qlfwZBN9WiermvqmW41gqNy9hpSada8F','user','ak_c7c34f6631404351','2023-07-11 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$dt/ct7UBRg3wt2MWYIX7WG9L5fXDlEbgRXopk6PW35WPtbYFAKIPA','user','ak_c78df496c8243084','2023-09-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$Pze5V1B/yFmXDM3V3rxvpWK8E7mluNW7PkCbkG9.rC1imLhwIRdAX','user','ak_685fbac07ba7a66e','2023-08-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$EO1wHT61W0uZJxOuE48gg3Kxj4Za9mJNDx4Pu1qkM2t3ILnGrAeS/','admin','ak_0a288f1cbc8f19ac','2023-12-06 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$GiZtf4ZeHi99Z1fyWH.AnqNBlnNT40qd/bdevaDcWfGOM8/TNub/K','user','ak_2319be28854da096','2023-07-19 10:16:00',NULL);

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

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


