-- Host: db-master-5.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=10013;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$WbwJW597kIdOWLnJeJCIxoLwvKH/DUs/8haQ.n/sarLjeFy9abF/N','user','ak_d4777ebc87fd9719','2023-04-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$a1cT27PjGv5WeO76D0yT8iJp0aRvLSfHhtw4dtIRGQNeVwaMMUwoS','admin','ak_9990f5a6b04b455c','2023-04-11 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$.tpEoneiT3GTKRmNU2/wBRBeE3/h5hUVNh5mM9zRKbLJcZlE2QkBo','admin','ak_87821fa8ca720167','2023-07-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$KJEjzXLfFaMos4mOa/taGaqzGI3Jb0WoD51GYSY453ViJxHHd5hhW','user','ak_fa2677e1a31c5398','2023-03-10 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=34406;

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


