-- Host: db-master-7.internal    Database: webapp_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=5838;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$W.oa5pLpNw3GftLXEJ0nHkXo9RhwBMhCOb8D8pCEg0h6IQsoor0O7','admin','ak_4fc8312efd92f797','2023-06-08 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$.xuZxkt9mSNd8dM3HMY07NfVLTxO5ZbuNGSXEZex8B.Ie43ntqLPK','user','ak_d5e59e9840320de2','2023-08-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$MAxC.ZGYnZ0jcedykQ5rEcQhiTnJPh3g3Jm3v8B280/JYuewix0ie','user','ak_47f5559535621133','2023-10-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$VOWUqh09IXBuv/EvJ/Zz2Tohhwp4NEXmE18ogZuj4LrIBJH/m9ClN','admin','ak_b307f10592458765','2023-09-10 10:01:00',NULL);

