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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$ibgvRtGOGzp0zX8aCTGqFF8Wv.Ft38s4tpvg86YZuXMk/fNnA703i','user','ak_625641f59938e1d5','2023-11-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$tAmm/riAveG.IqBvFd19IFQEKoIADw5fvhIonGzaSr1tzBP7QC9gg','user','ak_ae0d82798c29a7f6','2023-07-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ATx2qu5Ixdi6cR1Z5Fpw5q8MQat7Ppo3jkpvixttnKDiTSDsMknyh','user','ak_e132dc403c9acea1','2023-05-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$d3qXaGmc8x1rJhEsqgiTW7//a1OuHXo73CiDOacTmcZZLyiVM59fX','user','ak_c0eebe7df8f3b3c5','2023-02-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$cWWpoMh9XqnWBTO7C/75ArD6Y9Pk/E5bCWNKMYuv7Dy5I6AOGQo3k','admin','ak_070cdac597092eac','2023-11-10 10:10:00',NULL);

