-- Host: db-master-1.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$BJVVuki5t9r6Seg9rf4ihusY0UeU5/Qjkqadulm6MTOi7gIHc/utx','user','ak_418f2e942bed8dbb','2023-07-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$3PtUnS21v6bagGLNYFWQs7v7Euuo2F2KB10ZnW/2PBDHm4N8gVc2O','user','ak_3f40b09574608e39','2023-10-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ILwW9PkYpyo0Xg5jJfJ0wr6fSMM75DDeZdUfvd/s0iMrB8akHouXD','admin','ak_c303121586f65113','2023-02-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$Ahek/F8eM261Q59EdNYMD2a.ch8YlHLMWQiSCWe7EIy/sPFPHWhPc','user','ak_15c47ad88a64025e','2023-01-05 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$w8XbDGVSaj7ot9G0kZwNEqxAaphyOboTPXJjtnMZi1F7kKf/wTp7k','admin','ak_f1cdfac24efd429a','2023-09-15 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=11931;

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


