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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ZOo.HOiNHgZW14q7dKttgw6rvKu70DFQCFQDF9pNjROxczgDsnSR3','admin','ak_7cb5568e1d7ff176','2023-02-20 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$ab4pXW9kJxb6Z2vdz1wdKDk7UxkhcVWsHb8jSdTC5asIbjU32y..n','user','ak_cc9429be69de27e9','2023-11-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$TAw35mpWP7l6oQy2NBD.GJxuDkp2HEWZDqOKX6OJsaaaGjsnS08cB','user','ak_4acf241f03ef9485','2023-12-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$5TiLnxT4tsfywbK2bazmSmpXcr.pJwxLvTrHs0CpxC8XJhSaJjTrw','admin','ak_db29872cc84ea8ec','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$sZQm3syWJMt6uhHTttm0EQBnuqJXVPczdjLvyKUe2ENxoN9nymUHb','user','ak_345e67d3b96537b2','2023-11-20 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$bnH8uyuaELa07BLU9ctaX1scg9QukD4OjvjhXB51w1rpTxlzWQrPR','user','ak_8caa112191faf257','2023-02-22 10:01: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=9183;

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

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


