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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$MC5O9kmyLSmTeKLSd2QZVUIJ8hafK/ky7wyLYis4M6QMDY/65s6p2','user','ak_5d9150f9dd950464','2023-05-05 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$vjlxvv7WPS8Udm1WV3B0DdjlDiE9b0xkzxnV6AQu..JNqdBpPhmyB','user','ak_254a1fc35251383a','2023-08-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$WJtONmFEMENMPtyKo2mBn7N0zvCBWDEu7QVF4lBcHFc9aLiLkJUM1','user','ak_a2c9770a39d980c1','2023-07-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$T6C5Ks6nWXjh7rjyR7MRdpNTcSeBwD2yZecYtqHEweLOeZemEfttY','user','ak_254279f40861988f','2023-12-01 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$oT3IPyCOWr3TTqXRbuHcSOSEFVUvcA/LWLLlu8aRj4wJQbHliXvMq','user','ak_b283f785e83d8c8b','2023-03-23 10:16:00',NULL);

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

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


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

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


