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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$4g8Otr2YDf9nK2gsCERNdxtlZL1SDW4kHxamr/STY4DRKcUvAXLNF','user','ak_d60fa25d21bab387','2023-06-24 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$1txQII.OpHD0wN2t68idTWBwmyKhkKK.emwz39LZdy6P.rIvj9wUE','admin','ak_b1523b9b15f66a87','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$SyFAsA.2lB8DMzNqB04ZJgNZZlb.aACZ4JgcSb3g0xolB8Qg9A74S','user','ak_151c33ae64e6d0d7','2023-08-13 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$/icESnqbSCNLqOM6TTF2lKF03S3YCQBYMNvQ/GXd.wMwnGs6zmARl','user','ak_855ee71f37d5757e','2023-10-02 10:21:00',NULL);

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

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


