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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Zt5oWZVen9XKRh1ckBrJqT8ERNFZcBreejPW0l1wgpiDN6ipeR/0z','user','ak_ad64867db5e15acc','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$3QYdXpT6v7mCAy8ytXW1D4BAvl5pxnJvR0clHWdUw1q0.dD3Urp2d','user','ak_979adc8fb5803fe0','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$wA/8Hi36boUv9.4iqOf0d7q3FkuhZAQnbhFzAEpEEos6svlMR7tKp','admin','ak_7e397edae48fb142','2023-09-01 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$P8xZOg/lqY0sJYStGnkV3q7/LSQuRwisrwac9X.8N0xPz8JEW0mLc','user','ak_26450f2ef5a3b2d2','2023-12-09 10:17: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=21505;

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


