-- Host: db-master-2.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=8867;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$bJVDjcXTsFAk37yFVSjq4hTz60apa7o1WM30XAwVrnVyqhtQeTHRM','user','ak_457b11f6b7071e86','2023-08-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$u8uJdWQSyHUd7pwHsLtj.m1XQYSDGMJTUvGEks9rS/7s9ul21UF4Y','user','ak_ee2ef01876f3bd86','2023-09-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$fAGILzpH.UPV6m31LRZkPuEMaS21c5r68egj17GYRleLWHTdJy1dq','user','ak_018dc59e8f449e5c','2023-02-08 10:15: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=37468;

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


