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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$cy91ZVQ7RX/L5Np1yKHDTBaHp3o30/5NT79cAs6KdUEhBndNegUb1','admin','ak_a0547706865b753e','2023-08-15 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$7TD6mam8wdtHEnET3LK2IH.K/B8SKrLH3WhqPXhL8rPHk8iyX9Xz6','user','ak_4100f6385c1be82b','2023-04-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$mOF9MLA5r10/aaShdxPD1oy3U7LkGYqudM8ev/piT1hFUyGC6ePtK','user','ak_5b5e4c46c78b3fd6','2023-10-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$lXvSJuCgz/C9IDocowNUT0TxdA2yDvMLTjxx7mSS8MyFkVcNvQHBH','admin','ak_4c67771d928d865e','2023-09-03 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$CKVxFPDWsJ3AHGTiJhnQn9n5iE5ze3wyAzCrn7A23Q4xJ5KV3R5z5','user','ak_58e35ded00e50fc8','2023-07-17 10:05:00',NULL);

