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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$V.J9PjgN8L1YXghtv5rFViLlKYXxi5vSsFRePWPPXTzHhM34Inp2N','user','ak_5a313b49ce4ae988','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$wzBhko0.Pjd0YgN85I/K5dt72ALZstJIA9BNLctRn7NigXOL7J6pW','user','ak_85c40e671e694856','2023-05-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$oiWNEiooVEHcV3p/lXBGZO/W1cw5TEJZAVIGWoY9aSB.zkcida5oo','user','ak_d4848c1de25cf905','2023-06-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$FWc/UhxqKgdq08ti1VanGqo3P3LuXuxuhgdsGEHCjGZw.fZVEszuI','user','ak_5ff5576319fcbe78','2023-06-18 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$G6YuegpQbU6090wbrLaVhOf4J1PG3T/43iy/ZwnR2s57NsuwYE9Je','user','ak_f264e20ca3009390','2023-07-06 10:22: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=49951;

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


