-- Host: db-master-4.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=41074;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$siadnTejccamAaQSqMOSszA6ul2QxOlAuXeot2AuN40/Lmc68E59t','user','ak_9921d1d252647b45','2023-03-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$cd/44Q.khRoFB03XBRb1lLx8k25BBeKMx5L9HV2Ks7suZdxlpzXY3','user','ak_2bbb34e5d91d9831','2023-06-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$5.B9CeA6zbf6jGJMBE5Vjt47l1o0UfcA8vAJZw8Zgw1/BZPCTeMeG','admin','ak_6397ff7d99a41403','2023-07-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$hsLmT9FgdnRCBJYxKc9hkZaWp0JN8ddavEqcUfXyEKBv6vdG//S/Y','user','ak_e6e4d75d94c2c12a','2023-05-22 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$jUAqxBpK2oWRqYjOHu.VmxFUppXFmGR2pqPU0UVwt1pVcHd8U3/c3','user','ak_93ac8213bf22d1fc','2023-05-22 10:16:00',NULL);

