-- Host: db-master-8.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=11479;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$EvW82rxId.uVJFJxilEiRuXnMaeCZg2qibDQJzWnA3D6ZR2WIc6/r','admin','ak_492be18516e7fc30','2023-03-03 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$0yCpr4dyGmspF0Yc9NbhviZQUHntpoqXpFxXgtSpL/FMk7V7ckvPj','user','ak_6fdfba20b4e66c88','2023-09-27 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$NCjNz3D3v6Ytq8IqLQ1JULpIAEFSX6SolzEI0Qh7bfYPtlnqm4DSG','user','ak_5353fb34b8967cbb','2023-03-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$c2gB6cjtJGFigqH1oHHehGi87.8NETlQR25uow7xih/5aQuh0s5ul','user','ak_92b8e38e8000df41','2023-10-24 10:03: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=41445;

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


