-- Host: db-master-6.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=6515;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$s2Ec609KXne3ao4cHxvtYueMIPccSWkPuUt74.PEJaauFll48rFkx','user','ak_94d080354b8ac557','2023-01-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$dvZhJoAN1PCMaTgKxOwgehUEPJQYDFKyOe.kcT0j9fIXD0aMVcuf3','user','ak_fbb4c36ff107ccdb','2023-08-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$8hEozG6ch3UpI4/8vUge4oEtdYeL95VLfdbkWVLKCqMcqaCkt3rTK','user','ak_1d1f822035fabef8','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$P0jhu6/yO1sQEqfFk3OTjSwoqBQuC4n3uG37Jb8RbyAaWFHoDBqdC','user','ak_f90799e9589b5d87','2023-09-14 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$aCJkrBmvHof9UbYPKlgUV4OUuK4ZiopxhN14xnW2uXcVY39uTFV0K','admin','ak_9feefd09378fcf41','2023-04-23 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$aNgh/dk8vU30CeJV2te2pFwOMWet9XeGB31U47rioTh4MDqj6jjdF','user','ak_1b81d023b28965e8','2023-05-05 10:07: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=43489;

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


