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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$zdlphnXgdAL6By9A1i3nTZxW6PhabfoZMsXS.wQuHCVklp6DZkvfR','user','ak_81b49b5cad01ae2a','2023-02-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$loxEDYjligpoTqsO5EfzdKp42Eu5gv.iQ59HctKu2XgtkpQuIKmny','admin','ak_b753f7739e5fc304','2023-11-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$sK8E/KjayO/qxV/0YWj8B.OU94B.06xOxPq8yN.MuR/CjH6CtUG8x','user','ak_8e08a05e5d9a3b8b','2023-03-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$uAG1E2wMATtYPN.EwTJ/sKyruNENqFLFIXOb7ZiizUJm400DqfSD2','user','ak_9c638061ab09048d','2023-09-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$ussHZZz4W0p0bOw2C86Sii5SmR3zxYwpZFtD4SFvj9Pei8twIgBmq','admin','ak_f6245f81cdf32f9b','2023-01-09 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=33700;

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


