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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$fo9o1QKLwvpqg2v7ecJXffuc7KPs/PBCTVWL4Utc4Iu3xD6lAFVHo','user','ak_21594002d4ae959f','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$wvVpmI0t6l20xI4JbJgcRaMXmi/YUy6dp0Wtf3.27obuywTKtlh4T','user','ak_e21a4e26d8002fdc','2023-01-06 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$wePNBfmgI0Sd41tpg73WgPIiQN0AUyluZEqUuhnMrL//49fcjl63H','user','ak_c0f611fc6c1a5859','2023-10-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$etSx29wgB/gMyZA9o7ZeWDJU/f8mpMa8nUtWW9RuJXfbBffpaBh3L','user','ak_d1244e7afdb906c6','2023-11-16 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$L2BdnEbqdfgFyhZ4IOk5BEOVAMScEvVFPoybWkAcbUEEMLszBNnQS','admin','ak_5eb66e9c4d0f1ac3','2023-02-21 10:13:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=39279;

--
-- Dumping data for table `audit_log`
--


