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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$fxPBr49WKsvfEwOe1y.EW8xoqwEpRyKrXC4xPbkfaqI2AVGStYPp7','admin','ak_49db7a4cb8cb1c76','2023-11-14 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$coyd3KCUWkOdwwQZlV26LGRalR7Ri0XqEOBKBPMCds4CVH3qFZfV8','user','ak_dcec872152172ebf','2023-01-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$9/bI9ybiJgfV8R8Z0o6hzeOUYks2f1MkWy0NsyEg1Ny7aA9fwBuGr','admin','ak_e3dfbf69c4cfa384','2023-12-24 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$CQaWCpvsTNJBvxCbbSUfNbBOcio.MT1H.bOci5Mz132nzLRN4N17J','user','ak_00ccf3ed0281605c','2023-10-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$lVAiAQ3UMQVLr20mPHkyyELNuRj/Pu29.8Ab8HBInzI9LzMw6p1Ul','admin','ak_a130889e4982c077','2023-05-28 10:04: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=11993;

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

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


