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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$4tuy623c2TNmXVRY/x8adX3dvgh0yB0Oz5boSO6gtHYWsUmRN0cz8','user','ak_1f5ec57ce3cc71dc','2023-11-12 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$b7sN.0j9zf0EE9cA24sTU1KcVR5Lqa.PFY/KSp.yWM29pyeMDeUry','admin','ak_e83449055d5109dc','2023-06-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$vmZDVGaqSOg5Ei1KEZwC8Xe9mUEIrL4ERk.hpW7PVJqyAa3cFTuAE','admin','ak_e6b2e7661db56537','2023-12-04 10:10: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=20020;

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


