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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$Zcg6QvBq4.fVTB8AOoZ2QqRySQW0rnNEMrN/1S5UsVWBeY38vQci1','admin','ak_03e60d5b97248b55','2023-01-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$U/3T5GC72CvgaLQDfJmf0XhlIOdmNAtUAU6FJsX5iJ1TaV4.7LpAW','user','ak_42599158c5c5efdf','2023-08-05 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$ol90w/C.5OtAoY8Uut9VknmIcIiNVGeX2dsKRdNyw10kqXRAldZ.X','admin','ak_2dc84f195425f3d2','2023-12-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$gv6tZeyFIC024au4FoujNy5lBTqgH21wBBeghjEuPbxsdT0xuwLe2','user','ak_c5e98f4bc397900e','2023-03-21 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$lQRsD.D3tqdyIySAJvZR.Icsv.n6Xikmn0ZCEQLjLEABMf8odfuxl','admin','ak_c7dda3f1cba24ca9','2023-06-18 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$QyekQgkd.qsesCRmCUKThZArsYU46KaAYBTpm.l2d3TXkDafvM5fr','admin','ak_d7dcb55357283205','2023-02-19 10:00: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=21138;

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

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


