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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$.bPwkDWpZINUhsgURoVHXY0FVZLQXKKI5zHLFdnJvRnv1yvdPi9Kk','user','ak_099d03d86a70f368','2023-02-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$VsMN54nL2CqtH4EzXqkkrDcuf3y9pCxYPnlVvo1FJ51DpRduA.qiJ','admin','ak_16cd53849057aa4e','2023-10-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$YxYCXBBsuHZhQYaMYQbQj.aH7z4Z.JFo0KXSw4pWMTcBRIZQAgEA0','user','ak_3b31244d8cbf44dd','2023-01-22 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$GthOHvxHTpFx0FtPzhflT8OX4C0g2DECBYEPjrUxoVO.8sw6XEKok','admin','ak_6dcc723b7bbf8b8d','2023-04-14 10:16: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=24237;

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


