-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$s4oVtwK2PO0wmGW1GnMIsZerKtZ7mtd7srl8tH0.S8aj/1r7HQZlO','user','ak_5550e87450d8672a','2023-02-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$8lOrNTiUiBE3xFrRThzJMxmWNK69LxpstfSKBi7zkZo5Ve8VR.Isk','admin','ak_330dd196f091c67f','2023-06-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$i.ufFG0eyxpdvP93.VA3Iip1srPtO4aRN90iHJMulYyN/IPk9X0hq','user','ak_438be4001404cd5a','2023-11-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$yfzAPOaQYi1QjPkSWwV1TX5Ce.PhtaVwxVEyXWfxcwiEjEs5M/5zA','user','ak_769cc23605b12888','2023-05-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Uzs1VjYA.AXlcBeFAv5z0v1/1U/2lTF22fO7CktyN3MFnq8wl.P1M','admin','ak_23510063cd17f6fd','2023-04-14 10:11:00',NULL);

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

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


