-- Host: db-master-9.internal    Database: analytics


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$3sjbRgRBQTAFSX0v6XVoehRF/N0XAqaeYFlCToMr3W2YVErNGyVQh','admin','ak_27abd9c77a42d3b1','2023-07-05 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$fiQ.EvmauP.T4kedg4.XfJjcKq1YEN6qUf5gu.2CG6wXsOxYTr3iY','user','ak_0c9cae9b2aff6b8c','2023-06-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$SF0caf.W/18VRnEHQcuyW3k5ZM2dbPpNfAKbOmGr3DJzTgTE85uSg','admin','ak_c0ca271dde488949','2023-02-16 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$LS9Us2lWDftS2yPgwnm.YdZZIE9AksFfhV1lwl4m/wGKewFvk345y','admin','ak_23e3d4d308bd8afc','2023-06-24 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$OcsajBcofgSE2ANIOtto.iPGDXndj2UR/cmN8tcCvGBVO9SURhERU','admin','ak_620294d49d060f1b','2023-02-28 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$Jl6kr85J9Cg/W3TGGzwKcPgeVe/IGAreyAg9Nb/hDYhV9cc8yIqsZ','user','ak_4a95436205826740','2023-08-16 10:14:00',NULL);

