-- Host: db-master-1.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=40719;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$9YRPJA8VoUPxs3D1e/xI/QYhR.eGNNsqDJmrm08ZT41RB1wfK6J1U','user','ak_dd3ff7f4bcb07be0','2023-11-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$05aYYS1RHR4End4PRIDm1qEJ62CR1aG7vbCawsUnrmx/O583G8gJL','user','ak_b5f92e2b35682c63','2023-03-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$m6hfaGgnJjb0.F9rZrtEUBm6.XkeiNaqgGN6kZM.Hgfr7wXyjwk3Q','user','ak_e3f8717135698861','2023-02-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$F/vcMLbsThxp1YqNCbLGrPhJE4pbbg6URGMS755En3FvZ2U3mDFWU','user','ak_cc467fe4adbb936d','2023-10-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$MCmskWHX9Iq4Ipc9G5nUUnQVFqujkilzogyI0dRPvDfC5wWCls8ZC','admin','ak_a0d21b7e4613d1b1','2023-09-01 10:11: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=32003;

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


