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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ozT2u0sdjbrhpm7FFukQ9d9yyK5Dzz/.iFID.E8KYIlZQ3sJhfOAV','user','ak_c7a63eece67bd4f6','2023-03-12 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$mOJN2yh0FuPXj8oJYbrEXNIlfnplpT8djijKjNJRrMnqZ5aU4LhNM','user','ak_9901e9ecd63b5dfe','2023-11-15 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$3pojzTHGigIbU/Ame3FFQm3EpMeFbKA0nEhAlc0zuABwwEvzhWIoU','user','ak_fecc875c45fdb442','2023-01-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$bBvJIE9Ok6S4fRff8zWPg6gVc07iN1L8U9Xsoc/SsFV.NfF30FuVQ','user','ak_43772673f5fc5bed','2023-10-16 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=5914;

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


