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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$kvC.7nHeODbPg1vjZQzVlFAoWNj8dDjiDkEzR1dprUv.LQEEy.JC8','user','ak_8f466a5da8ba91e3','2023-01-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$8R82A2wzIaHan57pL1E6OXmSfcl.RMTvQpQsye7XVTSChwsHAlpjM','admin','ak_46d7ea59e6b317de','2023-12-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$ymiFKuLFrFrOhKv/LHsbafPba9G4WtGzA71yQbu2DWHHruW2SBRiu','user','ak_fae8fe341141cbfd','2023-02-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$iWWjATzkPgpP2MyMfT8cmx3jH3EAPGWW7ZxSxF0RXp92zQO6OAHci','user','ak_e3b9f4852bb5e37c','2023-03-07 10:05: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=40884;

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


