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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$qpNth0fmFtXYpvwn0axruODczmvHzpyc6CWltQk5xppVv/3lM/hmp','admin','ak_297265ab794e5c4c','2023-09-16 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$fsdHMXeqEPXv9AmsqrbyAmlqprmwDVLhVbx14DFF7X.uUzz7kToyk','user','ak_31c4147b66146b34','2023-09-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$u9Vx5EzNENeBFBNwDoOK8xduhxASskfW24gWayDsocD9qzp.ecGDv','user','ak_49605374443ff8d8','2023-09-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$972LZKN0dT1D1gSvNOTAI.a75zFW/BKJAwzLhw2ikfTl9fQTJ3lts','user','ak_551464402f8690fc','2023-07-09 10:04: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=40187;

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


