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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$EG4bB3lVIp69Q3iQ6VMIU32/F1UEwGeg89d24qVMruY6VolKi2ONu','admin','ak_039b79f7bd1c3afb','2023-09-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$u.CTHbhQa7C7ZNCEnl9t2.0ri0RvbjMoKy59V623ROJOIHvYh0H/4','user','ak_07a5c5e9c2433d0f','2023-11-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$L.xsxaCa7xFPv.sn0gBqC3wfkvdpcHIYqRcDp7K5dX9/4IOHfsD4X','user','ak_def92ac80efed728','2023-08-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$4O3YHrGenEzIPYfU8vXquXhHbzN3qXq6h3.zTKtwUvbz8hoDjyPSO','admin','ak_f595c37c82d80a23','2023-07-25 10:15: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=8825;

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


