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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$FInLrN4ZsEdnXKVO8/.L6fn6vKwvISr6fdbzVNKE.jwV1CLtdvSXk','admin','ak_43851cb40a0a2eaa','2023-12-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$djmgjrlsFeFigYOw4CE7fobGj5Ue696GD4TneIOPedbubfl0GlP5H','admin','ak_cac68aa035e248f4','2023-10-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$hM7Nz2AmwCogliqL91sjoShKUCFDyxZ/MEg70RqE3nqL.O7JvRWtD','admin','ak_d68469f8f2a80ef7','2023-02-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$waccwerbJukUQGJDtPvtMX8SAjAU55210rjpwReXOTGr3IJhw3Oy5','user','ak_2454cf89d2878c51','2023-02-18 10:14: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=13829;

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


