-- Host: db-master-8.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=15981;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$IbnRaFgGkVLvNyURnd9QMR2MJJ1aVCWkXrib52C4TW6FpUtL4WZvj','user','ak_776863c0001ff5cd','2023-02-18 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$wXMkpwvssvXQzQ4e5QNTukxoTgoja7KcHS4GWT.PYNniktVH0LNCO','user','ak_78f49dee25412519','2023-11-17 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$7fdYuQJosXQpxBmlQ1PcJaqlAEoshh6T6kATwCVvtbcA9j8f1GmWN','user','ak_0183659c70ad639a','2023-04-22 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$EFNDI3yJ.UWFhKuAz1mEuQR5vqUJD2lGZ6zmmGrtY1/YjcKcEA5jR','user','ak_98b78860f147a3e4','2023-03-02 10:20: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=21377;

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


