-- Host: db-master-7.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=30056;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Tcq3/WmmHt9YoZSmkFt5ZDyJ./wdfQpffSDz3LPTdhcYrxj16QA0S','user','ak_5cf43f139be2491f','2023-11-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$lHDVrT0cDbPiGGCCjn58JqwEmBw0U/u3xXuSoduqUaYD/p3aYh.gy','admin','ak_63e1bcc960d26658','2023-10-06 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$N5R8nw5kvfpqiyiVs17BGKwNkpiOjJAp6/TGrd6Q6b.uThh5ltn46','user','ak_80e3641a8afd36cb','2023-10-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$emHJUWDOdgmW4gPfcH0t3x3tuG.CQwlJ97.2reEeJdoZaDUIrzGep','user','ak_266804da4776c9e7','2023-11-17 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$rqqm/EZcxX88/ENYmosqChL7mjqJ6CCQYjFgL0ZPt4qEqNeNI8jqn','user','ak_fb758dd2a287d937','2023-04-22 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$H0tPAOUYeI592XIf//hdCAcjOcZTiFokL44ARH9ZfLdUeMvQpKbar','user','ak_e4ae7cbc148ab5e9','2023-05-03 10:17:00',NULL);

