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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$PRK8nt43bvJ5u.7JJieA1l1.aNhuEU0dpZcK7NpUjK4iilkglQrol','user','ak_5ad0fe6d74b05e33','2023-01-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$W1zVeg5km4ohSf/Va0DvoFsA5ESKTolu.Mn1InLPdjtbzqg17Wwif','user','ak_3cb44b9fec7a1be7','2023-06-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QSI0hl9kER.toNJAFy6y.EX0jWxxBbUZS0i3HtIivkTC0750PYfsC','user','ak_b1f958b3e1fd0377','2023-06-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$1d3PbCNXJ3DWdLQ9F.7UabuIozt5YAcJsJ5e.agfaosnt1bVzB62u','user','ak_76be215947cfde07','2023-05-07 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$2CKqVsO2eGYCALLPoo0oXc7O9z1HtRqEZsAztg5sg9Y67oJvl16SV','user','ak_857bbdf26ba6caa9','2023-08-19 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=36600;

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


