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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$OWOebrVBmrRx4c3QVusWzn4rmrMHshlp2/fr2QXx5g1eMfTrmTSuX','admin','ak_589231d94aabe806','2023-09-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$V9pT2Dp59Fzqr3oBFmZ5KujL92MERrLgMQPiew4TfC0Nlrjw8QByt','admin','ak_a7d6e2e2c1e09ea9','2023-07-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Wl0TMUJupqoTEgduzRiAubfCmxLJKOFcAAl5T0BuPoHuLwRPafBxj','user','ak_19e9196da2cee7bf','2023-12-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$3KS8V3a4SM75YD7H6yhEUcPhSodFQXoH6ltyE5ZJrBrjLnIndsajM','user','ak_603007a53d1c1609','2023-02-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$bqLSNQvEvBRDKhRuh3MbbytOpibcDoHpl6PrXnMWeSkYd/mv6yysC','user','ak_e680ce6284d502a9','2023-04-14 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$DKNoeGWQuoqL/LFOwVqb6WPyQriaZG4EgXla28tASiuhJUTJQgH1N','user','ak_3fd1556c3bea6126','2023-08-03 10:21:00',NULL);

