-- Host: db-master-3.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=1037;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$up/LegLtBd3P4gyf1paGsjsdGmu0/tL3Dd/hHnSGm2UceH4JSQCK/','user','ak_e9b2cebd63ef71be','2023-03-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$C1CsuVwUN1bvaU1JwL0GgRIn/Qh1oFa.HUF.p6b0dLn7mrEIXnEQ.','user','ak_68ff0869e268ed1e','2023-08-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$ETgqMUNKk1MPxQMu5hMtkmV/Eq9bfVQ2jdAVEL/73MVZQd7v7h.M2','admin','ak_0f99329beb3025b0','2023-07-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$I60m0JxttN.InWGBLwYvH5BfrVUU4fAmBFUA1jlzqftAKgFqTHthd','user','ak_c703a96a6dfcd137','2023-10-17 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$M0b9WfokrpK.N/lGe0gBw9NrROqESV5tvqbshodTDklehgBkHjq3E','user','ak_eedaad63f2d644e0','2023-09-19 10:18:00',NULL);

