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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Y5vAiZ/EytfXZZbjSG2ZSrQUFYvS3FlypMJepTM26SLzf7Mb6GKKa','admin','ak_bdbccef745b8e181','2023-06-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$srnOoy1XihZU9.KX0D6KLI.6mgFaD9qv0HhiDb7dooacch9wZgEyj','admin','ak_d54e9f9a7b6fc283','2023-06-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$oQLZkLAzkj/hLG4XKFvZWejCU66PRVxvrzCYhvi2Qtdj2607zuFsV','user','ak_12bf50e57e1fe9c0','2023-03-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Z1aULG1Y/aVQG50nBQhzDmy7FMsaYfpJYaBEy.LptNtbV/xucY68G','user','ak_ada80952756ecb67','2023-07-07 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$8oEPbsWeEYRpOWEOMoYE6ivcSBHci0qIAPMDAI4w2HRhK4gwcnqrm','user','ak_b5e5785b870ae8a6','2023-09-16 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$3OiTjuJYiBAP/M/o53jfsU8lt8juOoYAqH1JG9apeaavggQxnbyhZ','user','ak_3ee9b7807c20868a','2023-06-21 10:18:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=3093;

--
-- Dumping data for table `sessions`
--


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

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


