-- Host: db-master-0.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=34881;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$YCyN6chex940zrTeeqXnvnERanjf1bIkDMlBebYSmWkKSlV60rc9r','admin','ak_a2667ee0d9b1b828','2023-05-04 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$/.msUrvGn8DGxe2lHizhIW8Pfwpr8EhZ7netLaf9FyRmdoTPQSTRy','admin','ak_54a56972f4ae110f','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$SlTAttFiaqiQiUwUi71GT7KlT0VfyFr5geRuZXtdhVtfMehzpirML','admin','ak_7f14f06a5aec1a19','2023-08-15 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$iCJoARAa8PF92lrRHOsxCjkX/4mZwX33UAdNiK9vuENh/HMRwXsm5','admin','ak_1417b58a11f49f50','2023-01-18 10:00: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=47870;

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


