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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$pbFx7kpu9RwHZmtjdFxSjp.Kk9RJRZZaADYYAfCItuWzTHXoKs6cb','user','ak_b9fc544d1dddd12c','2023-04-28 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$KDmoznYEcdcaIEri4oQcLgqVcQ491OW8uQATxvXvyo5zVX7ZOpFR5','admin','ak_28f6d84e3369fe39','2023-06-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$yfcTg61Ywn1YCzC3P.TVhRWy840cBm052luTbVyeGaSI/DZp84aCM','admin','ak_37256fb0e8a30957','2023-03-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$0Kh8/FqlgK8YU2aNLM3qA0Rq3L4XcZMD75z12a.R2cr5MSg.bp5bz','user','ak_188815e78faf42b2','2023-05-03 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$zwHOqfYlOHmxryxwmGpLjpEoavmU0iw3p/3NMfBtDYDb70tMnsz2A','user','ak_3e8e305166def3a0','2023-10-13 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$SGKTdJ6xNV7n37hYnK1Ncom7.IKi7pNBu7Z9dopSQiFYyI8AbOgdP','user','ak_72ccc22a60eec958','2023-09-12 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$oNysOrJSLPnejqbXtvyy1TAfzEN18aR8BFZZ0FffPGeD.vjE8U6/6','user','ak_a993331510143451','2023-05-28 10:13: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=35059;

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


