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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$S7gw15uMIM93r872BtqOdPlClOTZUGB7y1kVJDZzCWl3dqLrEF6Nx','user','ak_463b02bc928d33eb','2023-01-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$WlxDH3WUq94I2ycK6ZQ2RVwTQ3.Aa6ToiaXcVSY2hrKIIOmZYsQI3','user','ak_983bea1e9e5c43ef','2023-12-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$NPzwCpy3Cxwps67YLb47CKNS8CrKKrNNvBlCqh3/wXcLneVSYJ5X7','user','ak_ef0cffc52a889375','2023-04-01 10:21: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=26454;

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


