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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$8Wk9IQcWAwS.nhwJCXHR0wQpdvlDNXkAokGX5cZhINjfIH/6GoeUa','user','ak_f9133e75e324a7cb','2023-11-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Jwl5bpWobUKnrnnX9ZhjFfoIwdKtQZF9eEVeEW6WpVp/JOGcB2dGn','user','ak_51d1a28afdaa6715','2023-10-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$r6fU3PUAo07Y8c.Hj/VYoFiD6mpf.mUSDYHDHZ/BTU4QUWMKwOZ2.','admin','ak_0f105444952b479d','2023-06-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$r3oAl5r/zvm8BaTwxlv3sl4qy4VN7K29BSeuXUjo9nMLmwA4duHOZ','user','ak_5096058c2dde8898','2023-02-01 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$QsbJG2j4cMPnPXGHe5EMe4H2UV0Vmbu7cDrXAipOxrI7H1bMEEZg5','user','ak_e79828cc41dbdd6d','2023-01-21 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$jog6/ASdKnCST9fwGPGqcmpi9sd9Ono.tjv3epAeFW90wpbIRvyZF','user','ak_9564dee751f6d15a','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$9HaERyaK0fqPxXc6EHVebj1TnPfzTSDX39JeaBV5E.HpSh/.A413/','user','ak_3b9ff243d6c405c6','2023-09-01 10:02: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=7083;

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


