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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$3CdHZLqEEPy7fK67Z2N6OwohuZi6Ok9TpYngy32DLabS53qswFjB.','user','ak_e99a7e9cf6e4903f','2023-12-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$SjL/Ra459WTTlt530MCyBExWa.Ld1nQnutF/mSL/CcaSKdVARcOn9','user','ak_88aa7806df9be010','2023-09-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$uA5D0v9n7ys/Oh46Ri3YC5akufE1xszZ.UQpRAk6tDMC4iUv/8BGA','user','ak_fa3565e4a02d194e','2023-08-10 10:14: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=8864;

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


