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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$siFHDE7uO5TIwyUAbaZUqroogCWcKcwVi8PeUUWn.fYix9VRx6IXj','user','ak_d55271322e584ac6','2023-11-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$ptv4vEcOXJigzT39UbEUmCQD.RT0IpWxZY533p32l6.djARwn3hly','admin','ak_6f9abae17181c4c1','2023-10-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$5Ww.PGmdUdcZhC0jNIEo4U1OS5oUdzxg3lCU06IDQcUEttdP/hM.B','user','ak_aeeba92628f091d2','2023-08-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$RQf2pSygMSdo1RW8oC2lcfNyhhV63NJH65yVyMfhDUjC/5oWAEW06','user','ak_18f74146f628ca96','2023-01-05 10:22: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=10038;

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


