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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$f0H23cyzdgVbRaGDQdr0OYhu334faIRg3h7wpOe2u/IWxyn8ZpTnB','user','ak_cd7d4c6b3c6a5537','2023-01-13 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$9YjnZYukFyX8MsfciTgd9/6nMjEgqU7uceY0N0xlH5U5Myx7Vz.Bg','admin','ak_f0e44c96d5f7eb66','2023-03-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$5ka4meE19NkWEYDwxFxJLUZqtBn.MqbH3arWcg5wByObNyUIoCrit','user','ak_43a50315333db88b','2023-11-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$R7tj2k/pAtmBsOXVGr0GMKNmQjYfj7/x3vVRksCkJDqhTDStOtg.Z','user','ak_55e32470c038424c','2023-11-01 10:23: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=19880;

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


