-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$x.0kMMWLmYQCU2fNc1a4HJ7V3hjDz1DOh01QbyTEkYz7eV.5O66k0','user','ak_c5628634086cbd2f','2023-04-06 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$kiqAqICR49jDga6PgqfXHxtEYcj7K.RRSQYPCiBAAbmfVWk7LEhXA','user','ak_d222777479477aba','2023-09-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$qIFjjeYeh2LZNIxRA/aTZwN3YUYpXoBJXYmHJ0S6Df/R/A7i/3p4d','admin','ak_9f2f3af430fc9c54','2023-05-23 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$pH0almGNooFwBD1ub5DgPZsfW2Elj85PF5/aXBbm2k5nPM5qg4CcR','admin','ak_fbdc31119022ecfb','2023-12-09 10:07: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=7115;

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


