-- Host: db-master-4.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$amIwEsqQw.PTm6DcNIFlKkcHnpQDzucm8pwZb.3PRbpmydO.b0GRF','user','ak_bff049ba9d654f41','2023-12-18 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$HTBqA2IrULyOk/q1bOQRJxRlwjydfLK4vyZbBY0DosLYOokTzyHib','user','ak_ae36b0f38f48a806','2023-03-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$seo3sAQG2Uid6niDE/NIyFQ3tmn3WItG1rYNh8wgKmQf5.osZHrTI','user','ak_31b5b6c92c2d3c1f','2023-05-09 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$EwA/gKN36a4d5zUeFeB9Lzez6ObBiaJyf0.h6n9WkEsKaZ0pBjduy','user','ak_20e6b39a157f8735','2023-11-07 10:09: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=38465;

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


