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


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$0ss1lgOMhe6GaSCpjhUdRS2igG/4U6i2bmV7C938jN6TTJBhOQq0Z','user','ak_17de2c5b90ed2ed2','2023-12-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$bAZRoZYEgdVhHdCdVYL2i5sTME.SDowVeWfOrpqcgJreQREkHc6wu','user','ak_08bfd561d8b1c772','2023-06-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$1lj5d75YP0Y8S3Ty7OnQtxJVN3ieuEAi7jn.8srEvSDMI4s4w7FdU','user','ak_ce83c1df09024b33','2023-07-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$cjxjYGYzsWoBglDsuW7oUPyUVIDjzvTDEFfTQHVWqL3afQvkeTcWf','user','ak_2f30a2528401e842','2023-01-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$JIh.u7NzZdoqqiWcQRu1MVNa3vUiuUziR/bhaSYLBFg84zwwPuuZW','admin','ak_cf3142ac349ae847','2023-05-05 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$MfqwbNY/xZ81LZ/qbfdgkRuth.5XArt1.x5b/3QzBKkeXdRot0t19','user','ak_ea0cb8e204418cdd','2023-09-09 10:10: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=41531;

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


