-- Host: db-master-6.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=11977;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$LpVARBVSdkDE0lV2sGDuP0OX9vXmrBy6UMxj7jZ.g/yQBnJkY8k6B','user','ak_ead360e5295f9f87','2023-04-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$bWxf59UF.3fNw7iEz31EZP5gKWEX.6Rx6aEoFGNENy0s6uVBgCcAe','admin','ak_5ac21acdc813cc3b','2023-11-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$J4T9EMj9E2eHmfTgdYJTounW.uSe1lQVO7h5UHUdsQUzu2oWObWvl','user','ak_ea8378a197693f07','2023-05-03 10:04: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=46568;

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


