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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$oXHUPpQWbnpBW.OU5m/iZ7qoeK1NdCP20gWOfLTQykpq/YqFuKFpi','user','ak_14f8451f100d1dae','2023-04-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$5EttltIxRntcfM4RRXhmpZRI.jO8WgNYKDjQOKVFqgNcBauEcxtPl','admin','ak_0ae729290a060ab1','2023-01-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$jJDcLEaajap9tTFT20FBAyROhOIL8ZnSvccAHvMdnWcFHfSLf2/k4','user','ak_1f93513e831c139a','2023-12-04 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$PdDZPSoNdQ.JblMYVBRIs6KnmQL70z7LP0.dnckfbVOgJUKbmdhCX','user','ak_1753d82de3ff5e5d','2023-04-14 10:22:00',NULL);

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

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


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

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


