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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$y4Q9vfl9yxLPpQlsFmu5rIVdmAcxkQyoSFKkGak4RUh64cGkFVHSx','admin','ak_72833fe845c15f94','2023-10-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$5ZEc1of6Mwk1yLuXqldpjWFEH2xpFYSlCI9I6Ete5/NugWSiKvrGq','admin','ak_e50444fd11d9aeb5','2023-02-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$2Pww0YzA2jOST90AFAqyLPC6nOf6eeRRnjJWdZ9pvXT.Yh/YOhlu0','user','ak_93f70059dee3aa81','2023-03-26 10:13: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=21010;

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


