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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$HCCzR88zPqllnShiSXIkGyftip91M1zz.1niWVw5dFFYw.NQmbt0P','admin','ak_a35e3560e92db648','2023-06-12 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$AazfUyxi74RMLGFl/q9veR1b.aeAyLDyihkBFyCS3Wdvm9UkTZ1kr','user','ak_cda1a6841c44b192','2023-11-07 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$5lDsp6vEkEB0prR2TYzzWhmJ1W8zdgPr69M8AnwnAcs2qFa10Po/r','user','ak_6f136987032c1321','2023-11-24 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$K3pqLexW/trVh4pVwqGFlDKNS5KvBeXLSSZQyzyVHQ2QPMKelza.Q','admin','ak_0194138f77a30011','2023-11-10 10:09: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=40084;

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


