-- Host: db-master-2.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=31750;

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$HP530FXGCrQOwe3mzx8BwTaOQdTNdw2rvcw/zsi80U8wo9fgNdcQS','admin','ak_2e38677b29ce29e1','2023-02-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$dEEf3k16i1MN9tO39vyuhkm3hqT0sX56MwhhjSMPqQdqZmJ81wfaW','user','ak_e7e11f85b4169f01','2023-10-08 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$yMig98.oUdw95Dq55JcEmIM8jNh/JSj3XEnNMQdsfyOk9T4HskG76','user','ak_c8702aa7c5b8641b','2023-05-17 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$IfhEHoJTuYHGRYmc5rOrDJc8uxLSgDMwNigwSPa5MyKz3BQxBityG','admin','ak_e0d33974abae1692','2023-07-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$mUW5mKjN5eMri2bklbiUVIdDfOohgcCllKntcKJ.ckl.HJCN4ER3p','admin','ak_e23032d5565b8917','2023-05-12 10:11:00',NULL);

