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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$/67UBuDZZgN/zQLj7d0bpQ3/Z8OztnbovGYOXQW5wyxlWo8rFuv/I','user','ak_d64f94dd9a7c9af0','2023-10-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$DhTkkHP93FF5YUvtpgIDQuf1aBCL.rY0bgTW68q6XfmwUPyuK.hVs','user','ak_38106c5152ef0454','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$zBTzhJVnWsZiBhCknez0dPKmqJUqbE8lajbS0Recib2YAAKpc1KHM','user','ak_dbecebe0bbfac979','2023-06-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$oUoxJFQPbjVFkYIE7CvjIhdNetV897BcnbMBeJNzFXDpx9ehBYlZw','user','ak_6427a0e9a3d6c73d','2023-10-19 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$BAbT2vs5AH1FaWhRLeIPq3oMJdwxfyJlagt9ehZeKYSryH0r/d33y','user','ak_539b790b9f4f24fb','2023-01-19 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$iLNUKOyWHfL0MH5CI8y/nZKPg01/X10wV7NlJz78KjQhFy/N4hvQ/','user','ak_04647decbb7fb580','2023-03-23 10:11:00',NULL);

