-- Host: db-master-6.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=49443;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$yB8kIQKDsXIzhM46lONHVqEkcH6hBnYN3B12SA6WVNTdcHuVpmRgg','user','ak_b38ad5066817d0b1','2023-03-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$JZ2HJj.vJ6o5s113fYYkUrM/BS/RFiZgXnwws2nfYAKvKGD8CWh1X','user','ak_39b29be77c0e68cd','2023-12-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$bnS/w0npqiaP4Ym1IyhDF1DBbV4BHBUDlvC68BTCiFWka3XeX7Ni4','user','ak_ee5745d84bcfb521','2023-11-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$VV7OLX/43TlMOZP8a2zNhF9qPp2MVv7yjZfpkVUGsHZdXICWfxuqY','admin','ak_2afed005359c43b0','2023-05-17 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=39603;

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


