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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$OouzLDKPQVpBlN4VDw6kMdwjFyz.mHz8O6cN8W0Pu6U1ST36Z9aqs','user','ak_8fdc4b2958c98b7f','2023-08-01 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$pOWoQ8h2amZdQN8oLwOlgotMwA9UIZ9N4PNS5ZPRTSorIvzmGAIE7','user','ak_dc161aaed7b26847','2023-10-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$bZIF075q0MpDmBZK1FpLb0tpCfoLRTtTOP2KK/LxjFnS1u6e7MZrz','user','ak_c76170a1e7b66c55','2023-06-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$wLqN4qp4mA3AM9Is3wVWXNLeqVTHQuVldO1pVpzG8xI460Fi6FRrF','admin','ak_5f03f6962056dd5e','2023-03-16 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$XDMcFC6DqpKWwZ2jMuBhbziGbCXjDFdobBgVJ9n9S5dN.u9frKdOp','admin','ak_0b8d2571cdc8bedb','2023-07-02 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$FDnXn.8OZmsg9gYCSHzM5vcGyh1GVHHCn1FFNKpykqXzzmrVHN0yM','user','ak_54d1f16a4f6fe209','2023-02-05 10:11: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=42215;

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


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

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


