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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$d.kHgFM0dZy5qJsiBBWvGuZefwPpYG0vkUscJhZUSnHSYx/uNfHZv','admin','ak_1caacd427a7cd48f','2023-02-23 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$kzJFcc1GMPLi7tQkMpYHmZfALCZeINCaoY5x7AlER5.BQSNOj4/Af','user','ak_a348340b5cdc7df1','2023-02-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$OJKOq1SsrR5O1nNEziV7tnY7ru6Rr2h8Ps6Lq3ycUM.34dzYhHN9K','user','ak_b7eb9afc27242dd1','2023-04-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$WNqU97VzWnUV1/ll0vts20L.9ncoHgyMBDXhfQlAoXTeHkCYS5HXI','user','ak_0505abb0a53aa4bb','2023-06-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$ztb.lurnMLH/lNhhZ8RA1pHLU1/CZTEo/ZSRzIUjT4siPQPBjOcpz','user','ak_ddcc2e71a05e9399','2023-12-10 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$1xqHjiucKAstYAq09Xa5DGUTYogjyXS6O6B1D0wDU9QLczwz6h.oX','user','ak_bf29c3d5b135cad0','2023-07-08 10:16: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=46436;

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

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


