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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$57uyvIlFfSh/H9RJb1v7/.MMXB3pzf1mRj0xXZetabcMErnV4Bm7W','admin','ak_81cf9d02555327ab','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$gUCeIk0IxXf.0UmrkCfwsxvKo0LXFS0gDP4brYHOalXaVioxf2wk0','admin','ak_6c8b33aa8d9e33e0','2023-10-05 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$T65SM7WHs2aYPUhRH5l0sZgWyQNyDWUP2lA4e0FUwxBPJBomw9dJy','admin','ak_d0d936d1e567d79b','2023-12-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$yplM/xhSdQNOpAKIYDhUKsNvg7mRRxAhs1FnFoncXAcBPcajlnM/C','user','ak_86036b7808186fa4','2023-12-12 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$UiYgAG6Z0o6gXBuaJ6Lo6PgYTcGGHSEtX6mgvxfG9OR2YvWCv0bsP','admin','ak_f3c46dc7d4c544f4','2023-02-16 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$9Z772..NRZilLP4TeiK.k/VDCRBZS78xKNBqxHd5Vk.yVwMPFdJh1','admin','ak_2e184e39011b5586','2023-07-17 10:08:00',NULL);

