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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$7P/W5.JabFsspv.Ar261iR1I4thID9lbx7yUefnQQhGpR6OHQzqVa','user','ak_139130424fd5031c','2023-06-24 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$VxKQkQy9Mc4yD1sYQze117RDILQKd7a6h.zAGXS17nWE2Acu.NH7D','user','ak_341eac02a715dc01','2023-04-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$OMkOgmO1ej7FQNDcHpVWtCxAK0ku71LzPtlN2LPuFxwMvRu.NjPzO','user','ak_7939623283a00afc','2023-08-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Oflpxe/5wm5ffdSRYmoBv4EMQah.VmaXCmykhXIXXJh4GG8g1yhaJ','admin','ak_95b9791d58c440e3','2023-05-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$MD6hrUouxDfyEfW2L.69iIB61IgjjbMHJOg.Gbx/JSMmcDULgsWOO','user','ak_252f4f5871d659b5','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$oftPaGn.SkOYGGTJ1mzngk4nt8twN4DmSKSoIHB7.peJhjEUzlhZM','admin','ak_85eb7da0b7f1493b','2023-08-20 10:18: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=6621;

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


