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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$6FdB2bbXQ3UPNjK9RJuqc1tHn7tN/4K4qUGa1hl8cOILnlTYekd3Q','user','ak_efeb5e3338b1d4f7','2023-11-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$yH3eLzoOzqJCM7iiqeVr5pYJ1CoQaLNKtG11FasW/AqaaimghIZEu','user','ak_2ef9b65ab79906e2','2023-11-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$XZxMWZkN1b0TqHIQDAwJ8Nu.HMAR9MkFreazswWPwoJ7xiwJZiYuv','user','ak_f3ab7ee69941ad7e','2023-07-09 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$RGrkK.BDZOJnq6IuBFdaEl5SzhGxLcHRq2VXVa3v866dDRmhEmwqd','admin','ak_4e405e9ff76751a9','2023-11-06 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$qoorP6eo1gSdBj8CGWOWMFRX9mzyCaAHVhdICxOxqnXLVOvauSDNY','admin','ak_049ff7df2d48f4c0','2023-10-25 10:19: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=8345;

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

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


