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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$uArCHeK7GBrYbLR.JqM2Gsi.p7mKhxj53a2a1cdidSHo8QPnFxIPy','user','ak_b4e07a7577f5104c','2023-03-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$ObS8pavFDKtG8WgqaxeTO8APkYoLaQEs6k9lZG2Tm/2EUT2j7sLlY','admin','ak_9b87d0854e061779','2023-11-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$6cf7TclHyMibb4Y1oQWbYkI0TW4PYPJ56oykMsnJGOu25oCPd82jU','user','ak_4b126af06f4ee579','2023-08-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$G0tRgt/sO700YmR752RazsFG/Smon7yIzrb9Wqmq7NAzS221OTDpk','admin','ak_c0e21f32e2b5e3c1','2023-12-01 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$sA28RMSZt0.XvDP1mPQPsdPWndC7bcdCX3.CTnd3WfKMGeRUCD7Sm','user','ak_8e6452969be93fc1','2023-08-04 10:08: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=26409;

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


