-- Host: db-master-5.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=11306;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$DeHAVhyJsk33Jw2r4NpN6nprlc0Ue69P5GJTr2gqH4NMAL58aJJit','user','ak_fedc16485e952693','2023-05-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$5EsyOO4TbUMrMJK569.B5Tq93ChWJzuIKV2MzMflmQ484Gs..eSMk','user','ak_aea40f4705666c99','2023-08-24 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$wYpc/sKO72NYe0wPPVu7oViawI.EkIABvSZ9orrYaYTqR0XUBpWrk','admin','ak_b04f7fb92838288f','2023-08-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$IHjVJ0QRunNwy8GupnZaw61Paaoor2sDF0H1d76G/bpXjEKtC0jqO','user','ak_25d93019175bc891','2023-02-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$6IbeEAXpiJNj5PjhJcbucRb4eLrk9Kw5Ax8igos8vHznhU38.TfBd','admin','ak_b24a6b6754aa6c3e','2023-02-15 10:09: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=18862;

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

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


