-- Host: db-master-9.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=49969;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$qVa4f.Hr1nn9JFymb/fxzxK6KwcYGjvPtaOASAMKMmsxv6PTCksEK','user','ak_51fe5275ad826311','2023-08-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$y6cZXhSR3WdPV/1zvbhDEbdOLCXKCFtiu3GRBqQ70tikFm6OEndUZ','admin','ak_5dec33083f7e0a75','2023-03-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$qz2ZAKOvV5njjP9SWP.X9ceAX0fDbfxJRAc1ONqpmE3JiUDi2UnLR','admin','ak_11018e1d763488b8','2023-09-17 10:13: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=12051;

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


