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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$NLpsvf06PFMjT/6ADBE3OfL5j4X1WzMmEiFJ6JAF.ZSvCTiRubUBz','user','ak_5588eb1aedd103a8','2023-07-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$0QssRCA2pK7JkvcHWJtHPtIU3.BTPH8MpQb/UqEYEZgzQD7m8clO/','admin','ak_fa4c0c91dbd981a1','2023-08-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$7ExFJP5SFriCzxYAZVe/GuHdjXdb3xnbyYzpyaYYLtDXkrcawiCDm','admin','ak_b0cebae5495e6c12','2023-04-01 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$239oebBF0buUTX.M3nGyFGQVG0jk2oWnvSO.DC1J6aIl.98Gh5qWu','admin','ak_7fa06e83d42d0ab2','2023-06-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$lWChgoopBl/K4pFkZg470N6/ZY9wkeLzN/7vJsa4DifvWOYFgBNXo','user','ak_74b23842db8c369e','2023-12-11 10:18: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=30786;

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

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


