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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$HSgykb6Kwm6wvm8iKLbFyaUmjIoHtVrH08mDu5HqR9qcp3XraoUXI','admin','ak_176073d633d6da30','2023-05-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Yg99i7347v3niRzTEvuR8qxjP9jQAVkm9HQ8cc6fxBsGv4ebop6sX','admin','ak_a2a8e3ddd12ff2a5','2023-01-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$aOwW/ci6k3hss2/LG2d9dJrebCae0aqC.MzoAQvxs64sXANIjR6eB','user','ak_ce9e25efb02114fc','2023-11-10 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$LQo861tvvdyF6bWXjahYdoACCfvp7WElNBjsQ4/kNboMMHTHd6zjE','user','ak_68564becf72eae19','2023-02-24 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=50356;

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


