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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$K5bHZQAHsxz.L2Bs6Lz/Ce8wPPUQoPvDa1YrhyG1XWdyKKI2kP5Ka','admin','ak_f76fc59772563339','2023-03-18 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$lcOSRo7XvvgNdcXd0Cz.pM5.zrTINK1bW2hhSVmncf1JjifdPpDRu','user','ak_f5043e955fccddfb','2023-04-05 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$.ol69aFENTAQSeLDKVJuQPGXxv/N1AwhNnCcQNoT5WDQM.sREbvbZ','admin','ak_f747a507fa017f27','2023-08-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$2IZvNkS8lskpK5jV9oVFYyYiI6u8ml5UJkR94PzhJ.ib7KtvXtw4F','admin','ak_cbbc65edd892d085','2023-01-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$6sB1iSQL79lAh93aUdWPZ3tJcNc5sqUU4qHaw41KIG3cv/c2aB/bc','user','ak_ba86af2a836286e2','2023-01-22 10:19:00',NULL);

