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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$rmU5JNouUUSbeIVQKFJCslzs7XlGfK/OaA2nOCVLDlA7NsmmN1OK8','user','ak_8b53a090ed6eb1db','2023-04-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Wsw7P1Ho/fA03KbOrpabA3Q6oX37en4QcUmGQKK1UoHj2fZ2q54yc','user','ak_704041f9fa0324da','2023-02-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$rkR/ea7B2pC7T1DXtnx5hqkhDZy4QD1EHY2m5JlOnBImdZilXtt7S','admin','ak_b3058a8e995ab4d6','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$uuHaFLvggqVeVBu3lGLlgFIZshK/5xtjRBTPyOGYMKzWEZWCc.bah','admin','ak_da6d6b83d1761d9b','2023-06-23 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=24711;

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


