-- Host: db-master-2.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ZyN8T4Y6M/IZ7edqEw67wXUSWLuIL5ekrLvOD6VKoCTAN.FCtHNDU','user','ak_776995440c228688','2023-11-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$vR3vedVrc1/0teO0IymFzDv54r1tBs0gUVavVNm1d51tP/B6j5Svs','user','ak_0d2455f7d7bebe34','2023-04-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Z4BvLiZZz4bIILpSCZkI.RxfmUHtP6VZzGUMMFJ1osD.Sf1pLDFpU','admin','ak_82aabc1f53c1cc31','2023-12-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$g9KK0cgTGwqiHbTSSaQDpO/JZL4vtlilNDZ3HU9sl9Fua6WMlE0MT','user','ak_c9c0c6db080c1fc2','2023-03-18 10:18: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=4819;

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


