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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Z9Cz8DnFM1TGk65a/1Dmv.EgLoZs.riAhk1ImDmMoERNjMrxp/NQJ','user','ak_b8ab3676ce83429e','2023-01-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$me2hnjEmvA2i3AIHAHWScALejREScF3n67kqww8EcVfGB4U/LkkKG','user','ak_664f622faf7f9c05','2023-07-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$dMImF/l1tBMpDJ.Td.b709QDMm9GyyAQHbDnFj4aL71Ic9I9BJj8c','user','ak_d85b5bc6f4006a5a','2023-03-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$xZnlYht5SL6ufFktqIug7UtHdU9wZcWU5T8/kC8Du/Un/TH/yZWL0','user','ak_e2faabd178ad1a7b','2023-06-01 10:11:00',NULL);

