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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$2mHbUI990Z.u80x67oAlrAlra.tN/3D6AHXRQjEeXa0KvLoEcAqx8','user','ak_e7edb08c2c27aecf','2023-01-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$QoNLaXS1joBNJfMaRLeDWhejXY3mebjc.ilwIpBJpmP/.pxruBxjX','admin','ak_21be28deabf1c8b6','2023-11-28 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$A/n4SZT3XjUeLHWK4mqD5cquVb9zBD/7MLI8mZ9/E9XsH9vtPe8uc','user','ak_f7ceb7bd4dec146c','2023-04-27 10:19: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=3794;

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


