-- Host: db-master-4.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=42012;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$/IbcerfgJcsAxV3LBqH.uz9qzjyJlpM7kCetq7.S82o56xtvRJMRi','user','ak_03b859eed7cb8d2a','2023-12-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ArnbAJGXvVKOgO98kM90NLWCecPFAB3zovGIhJaXy3VyyjsqGwF5d','user','ak_eb6d91ca61774e7c','2023-02-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$wk2HuxhtxwtuRhAVIn05FcbaIULC1PkvuBseAFu2uFJAq/oQ08VJU','user','ak_4431b96b0e86fc0f','2023-08-24 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$JjaTvd0pwmLK.ryDBkppUeUXpFovnS1yEZU.QdvwznCeLxBUG2zPH','user','ak_abb4d8b63dc72472','2023-03-25 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=7826;

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


