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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$udpcn3T7gpGnENv7u8wbe3lHZH4x4ueWHO/LzDpH4cH59Nv6gj2Qh','user','ak_de91b437dde0659a','2023-06-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$tc1G5yRIo2ENDD797cIoNQKn36lOP6mEi7SHGeJU3XGgmChYXWpOj','user','ak_1f9c80906b7a225e','2023-01-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$DzMg3jL21wJv36ACbcnkIMWNRHO74sEClhqYKS8LqrZE1PEy76n7D','user','ak_3a24af4035cc0d3d','2023-02-06 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$wdxsJcmAtPxv2gOJ6Z3YcK4Ge/HNihO92jK66v1y1r.OOuhsiaY0o','admin','ak_bfaddb91eb6a132e','2023-03-22 10:02: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=15992;

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


