-- Host: db-master-3.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$qd6rZzW0bp091WGaQ3qi/jys.PAx6afxF34z9xQDL4EiOJLJ1JXaS','admin','ak_a5b5a8fde71e1670','2023-06-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ODgpH8HpYFfFrJVBRiGs2F3d2wXMg7yV5bldKWJ1aIcGhn6Bf3z6/','user','ak_11a359eff2016664','2023-09-14 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$qdI1P89jRbIw.PqmVLRSuhFoLNgd3Q7jChmT7azLTicxrG0A1lhEw','admin','ak_698a957fac51ef9f','2023-03-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$w70wfUhiNYQOcIg7p7uwpP7Vt91G/ypaWf5W9nAsx925bCYVMPiwX','admin','ak_dffb8a2b680cfea1','2023-07-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$1jQN9PgOYPQ5zVD1tmSXy6TAUDmUVJfOXV15JLExMH4UFSgJddnbc','user','ak_5d5af939b3b84871','2023-11-22 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$.I7.yJ8uPCjLoQLfsgRui9jNYWbEIH3nQTPUIWynDS6bgSu58/aAF','user','ak_9aa619c6212fca40','2023-09-28 10:16:00',NULL);

