-- Host: db-master-1.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=40768;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$dJ1mvpQ0Py.fh.IHsQ2fwOnoqJevHZbNfnM6TOjVA9Z5FwEgCEmK/','user','ak_c57623654acd2b1e','2023-04-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Rn1iamqueKUZvsz36u7Y0qceipVfrwRfa7A2v1BuGGlcTubJTRrVn','user','ak_0b6618afc32e3899','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$E2BscCzKa.8wucK5Z99PkhFKoHbFPuKSQSwoAoQQflnWJF2olr0DD','user','ak_9cd57c1a637f62f3','2023-02-16 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$UHRoWfm4HSIH91eNaTA3jtwi54B/gADCgp7hAasS2ZTcH6yM74Mqt','user','ak_55ec24c30b6fa0cf','2023-07-22 10:21: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=40018;

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


