-- Host: db-master-8.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$JVj5I0qZvDvNeb6lczgOR6WZLbSoX3RDHYDeJlwQShWsnJNuHP.bL','user','ak_a74a8d801a3ef20c','2023-04-21 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$QyjfD5LKRMOt8aQ7UdADJ5vnYWFCO8YzFcXxqRWR667EQC/Pi6Oc4','admin','ak_3c9bf306718de7c9','2023-11-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$6dEas6OHWS1s.GtBBzBt8pt95fJ9JWk74J8.AgNbGRwvmE.CoD1hV','user','ak_a8fb2bffcd63faeb','2023-02-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$cm3AG63uH5BbD8OYE3.hQJLwGXcbb/aB6ocwmiNJsLGs3wP8b17Vv','admin','ak_cfc2fbd090aafff9','2023-06-17 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$SdgsJrVPbBlykZ43rjsqKwjfriLzbfIkOSgUCQ80xXg79DQIiLWbU','user','ak_cb5b0922f5e0ee5e','2023-05-19 10:03: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=21311;

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


