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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=14942;

--
-- Dumping data for table `sessions`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$tpKyMuHIOmQ7STn8yYimgKieL4Rk7.yhgGxBJrV5VyfSYksWhTV5G','admin','ak_8f18cf59ed074592','2023-03-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$qQg6RWO3HHzQIR1LNPl6zXopYN1C5jXQRG4j9N3meDMv2EOXh.SL8','admin','ak_82af39281394a99a','2023-10-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$ljEszmIpOGesCXofSK6Ei2JIB9F17XKLUqHwMllSkyt1hnW1aM1Zd','user','ak_6c6fbcbdfede8448','2023-01-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$MH80q.Vqv4S4alnEs13BAVbNvE6N6MrO1zgtTjsPSBjAiqChoZoIB','user','ak_d950d897d5bbed44','2023-10-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$FIxSTmaPV3LslfuRX.cIQxeXH5NUrPr0IEdtxo0dGKztdQUudUOou','user','ak_fc02988d142a1a50','2023-09-03 10:20:00',NULL);

