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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$dlAedysrpaGxVwso2Bz4WuJm4UMW.oO/NbkfdJol13ruWKDlWPItR','user','ak_1f09ac063983040a','2023-06-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$jWI3YTxST8e0BhymBhGdnJr9LQmaYoFcw8JhX6gzp5ADsiEtNRjlU','user','ak_0ce6af52475cb4b7','2023-08-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Z87j9ILKJlomGV1fNvqINkmYjhvYipNAXTlWXV/140YVqwLME659c','user','ak_ab6a186f03a9f5cf','2023-12-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$u3LHqsZIuTd6UV9kwKW6n8ytjfmolkUp7f1id3wYq2GOR6qe1gxhp','user','ak_0d38850b84d2d9f4','2023-03-21 10:11: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=13718;

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


